From fceb15b1d325a7bb0bcab8993a1057cb991172e8 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 22 May 2015 03:28:49 +0200 Subject: support for fg and bg color escape sequences --- kernel/kernel.c | 12 ++++++------ kernel/syscalls.c | 1 - 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'kernel') 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 #include #include -- cgit v1.2.3