summaryrefslogtreecommitdiff
path: root/terminal/vt52.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal/vt52.c')
-rw-r--r--terminal/vt52.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/terminal/vt52.c b/terminal/vt52.c
index 9ff1150..3fa4137 100644
--- a/terminal/vt52.c
+++ b/terminal/vt52.c
@@ -54,12 +54,13 @@ static void clear(vt52_tty *tty)
}
}
-vt52_tty vt52_init(term_out *screen)
+vt52_tty vt52_init(term_out *screen,term_in *input)
{
vt52_tty tty;
tty.data=kballoc(1);
tty.screen=screen;
+ tty.input=input;
tty.x=0;
tty.y=0;
@@ -80,6 +81,11 @@ static void set_char(vt52_tty *tty, uint32_t x, uint32_t y, uint32_t c)
static uint8_t escaping=0;
+void vt52_kb(vt52_tty *tty, uint8_t c)
+{
+ vt52_put(tty,c);
+ tty->input->put_char(c);
+}
// send one ASCII character to the terminal
void vt52_put(vt52_tty *tty, uint8_t c)
{