summaryrefslogtreecommitdiff
path: root/terminal
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-18 01:31:58 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-18 01:31:58 +0200
commitfe79552d9fcfd60d8c2bb828c6b93cf471ef7b75 (patch)
tree7bf842857ce4f485101848292405a96f322fe374 /terminal
parentdb22b587966b4a4eaa47536f32ca812532446bcb (diff)
fifo interface
Diffstat (limited to 'terminal')
-rw-r--r--terminal/vt52.c3
-rw-r--r--terminal/vt52.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/terminal/vt52.c b/terminal/vt52.c
index 3fa4137..66fd5f1 100644
--- a/terminal/vt52.c
+++ b/terminal/vt52.c
@@ -87,7 +87,7 @@ void vt52_kb(vt52_tty *tty, uint8_t c)
tty->input->put_char(c);
}
// send one ASCII character to the terminal
-void vt52_put(vt52_tty *tty, uint8_t c)
+bool vt52_put(vt52_tty *tty, uint8_t c)
{
if(c==VT52_ESC_1){escaping=1;return;}
if(c==VT52_ESC_2){if(escaping==1)escaping=2;return;}
@@ -192,5 +192,6 @@ void vt52_put(vt52_tty *tty, uint8_t c)
}
tty->screen->update_cursor(tty->x,tty->y);
+ return true;
}
diff --git a/terminal/vt52.h b/terminal/vt52.h
index 94502d1..9258cec 100644
--- a/terminal/vt52.h
+++ b/terminal/vt52.h
@@ -2,6 +2,7 @@
#define VT52_H
#include <stdint.h>
+#include <stdbool.h>
//
@@ -56,7 +57,7 @@ typedef struct vt52_tty_struct
}vt52_tty;
vt52_tty vt52_init(term_out *screen,term_in *input);
-void vt52_put(vt52_tty *tty, uint8_t c);
+bool vt52_put(vt52_tty *tty, uint8_t c);
void vt52_kb(vt52_tty *tty, uint8_t c);
#endif