diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-22 03:28:49 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-22 03:28:49 +0200 |
| commit | fceb15b1d325a7bb0bcab8993a1057cb991172e8 (patch) | |
| tree | ca95bf9b600d8687f2f6307628db4066e485119a /kernel | |
| parent | a6184be79e3918764d5e683796afbd8e8ccba018 (diff) | |
support for fg and bg color escape sequences
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/kernel.c | 12 | ||||
| -rw-r--r-- | kernel/syscalls.c | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c index 5350109..6937031 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -27,8 +27,8 @@ #include "task.h" #include "multiboot.h" -#include "terminal/vt52.h" -#include "driver/console.h" +#include "terminal/terminal.h" +#include "driver/screen.h" // @@ -46,7 +46,7 @@ fool_os *get_fool() // stdio init : TODO: move away! -static vt52_tty tty1; +static terminal_tty tty1; static term_out screen; static term_in input; @@ -55,7 +55,7 @@ static ringbuffer stdin_buf; static void put_kb(uint8_t c) { - vt52_kb(&tty1,c); + terminal_kb(&tty1,c); } static void stdin_put_char(uint8_t c) @@ -74,10 +74,10 @@ static void init_stdio() input.put_char=stdin_put_char; - tty1=vt52_init(&screen,&input); + tty1=terminal_init(&screen,&input); get_fool()->std_out.data=&tty1; - get_fool()->std_out.put=vt52_put; + get_fool()->std_out.put=terminal_put; stdin_buf=ringbuffer_init(1); get_fool()->std_in.data=&stdin_buf; diff --git a/kernel/syscalls.c b/kernel/syscalls.c index 7ad977e..67a8aa6 100644 --- a/kernel/syscalls.c +++ b/kernel/syscalls.c @@ -5,7 +5,6 @@ #include "fs/ext2.h" #include "kernel/kernel.h" #include "kernel/config.h" -#include "terminal/vt52.h" #include <sys/stat.h> #include <stdbool.h> #include <stddef.h> |
