From ce3968aa4a941e272171f8fcd389c4909a7a23a5 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Thu, 14 May 2015 14:05:54 +0200 Subject: some clenup and recover after git-crash! --- terminal/vt52.c | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 terminal/vt52.c (limited to 'terminal') diff --git a/terminal/vt52.c b/terminal/vt52.c new file mode 100644 index 0000000..813cf40 --- /dev/null +++ b/terminal/vt52.c @@ -0,0 +1,65 @@ +// +// http://en.wikipedia.org/wiki/VT52 +// +// +// +// ------------ +// PROG <---> | VT 52 | <--- Keyboard +// | | ---> Screen +// ------------ + + + +// REQUIREMENTS +// * kmalloc + +#include +#include "kernel/kmalloc.h" + +//TODO: check? +#define VT52_WIDTH 80 +#define VT52_HEIGHT 24 +#define VT52_ESC 0x33 + +typedef struct vt52_tty_struct +{ + + uint8_t x; + uint8_t y; + uint8_t *data; // screen data + +}vt52_tty; + + +vt52_tty *vt52_init() +{ + vt52_tty *tty=kmalloc(sizeof(vt52_tty)); + return tty; +} + + +// User interaction +void putKey(uint32_t code) +{ + +} + +void refreshScreen() +{ + +} + +// Programm Interaction +void put() +{ + +} + +void get() +{ + +} + + + + -- cgit v1.2.3