From fe8180d88540bfa96595dcc58290de5425e534e3 Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 5 Oct 2018 23:41:51 +0200 Subject: drunken proggin --- userspace/xterm/terminal.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'userspace/xterm/terminal.c') diff --git a/userspace/xterm/terminal.c b/userspace/xterm/terminal.c index 4f321dd..ba7986e 100644 --- a/userspace/xterm/terminal.c +++ b/userspace/xterm/terminal.c @@ -6,6 +6,8 @@ #include #include +#include "vesa.h" + #define NPAR_START 1000 #define TERM_WIDTH 80 #define TERM_HEIGHT 24 @@ -290,6 +292,7 @@ static void reset(terminal_tty *tty) tty->command_l=0; } + terminal_tty terminal_init(term_out *screen,term_in *input) { terminal_tty tty; @@ -326,6 +329,19 @@ terminal_tty terminal_init(term_out *screen,term_in *input) return tty; } +term_out tout; +terminal_tty tty; +terminal_tty* terminal_init_vesa() +{ + + tout.put_char=vesa_console_put_char; + tout.update_cursor=vesa_update_cursor; + + tty=(terminal_init(&tout,NULL)); + return &tty; + + +} // send one ASCII character to the terminal void terminal_put(terminal_tty *tty, uint8_t c) -- cgit v1.2.3