diff options
| author | Miguel <m.i@gmx.at> | 2018-10-05 23:41:51 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-05 23:41:51 +0200 |
| commit | fe8180d88540bfa96595dcc58290de5425e534e3 (patch) | |
| tree | a7a681cdcf013119d121fb17ce3b731763a4a644 /userspace/xterm/terminal.c | |
| parent | 4dbe6a264d7a3bd38ca1ac0921248654a50f1b5e (diff) | |
drunken proggin
Diffstat (limited to 'userspace/xterm/terminal.c')
| -rw-r--r-- | userspace/xterm/terminal.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 <stdbool.h> #include <stddef.h> +#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) |
