diff options
Diffstat (limited to 'kernel/console.c')
| -rw-r--r-- | kernel/console.c | 6 |
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) |
