summaryrefslogtreecommitdiff
path: root/userspace/xterm/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/xterm/terminal.c')
-rw-r--r--userspace/xterm/terminal.c16
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)