summaryrefslogtreecommitdiff
path: root/kernel/console.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-08-27 03:20:16 +0200
committerMichal Idziorek <m.i@gmx.at>2014-08-27 03:20:16 +0200
commit50c7bdbe826b5b425748a11273d14e3aed2ce851 (patch)
tree8fc2bec5576aad366b6f9f3f1fcc406f6a3eeb33 /kernel/console.c
parentfc7022286a14e7325907fb4e77aa44330037229b (diff)
many changes and adaptions and VESA mode !!
Diffstat (limited to 'kernel/console.c')
-rw-r--r--kernel/console.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/console.c b/kernel/console.c
index 42dc5d0..b1a9125 100644
--- a/kernel/console.c
+++ b/kernel/console.c
@@ -1,5 +1,7 @@
#include "console.h"
+#define FOOLOS_CONSOLE
+
static int posx=0;
static int posy=0;
@@ -7,9 +9,11 @@ static int posy=0;
void print_char_col(int x, int y, char c, char col)
{
+#ifdef FOOLOS_CONSOLE
char* video_mem=(char *)SCR_VIDEOMEM+(x+y*SCR_REAL_WIDTH)*2;
video_mem[0]=c;
video_mem[1]=col;
+#endif
}
void print_char(int x, int y, char c)
@@ -67,6 +71,7 @@ void scr_put_string_nl(char *str)
void scr_nextline()
{
+#ifdef FOOLOS_CONSOLE
int i,x;
posx=0;
@@ -95,6 +100,7 @@ void scr_nextline()
posy--;
}
+#endif
}
void scr_put_char(char ch,char col)