diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-14 14:05:54 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-14 14:05:54 +0200 |
| commit | ce3968aa4a941e272171f8fcd389c4909a7a23a5 (patch) | |
| tree | d3fd8fca72d0fe9f9b1d7f17a37a5fd3d2d44a16 /terminal | |
| parent | dc7bf2f47d6f97407e3b50ae0b8ab59fd51079e5 (diff) | |
some clenup and recover after git-crash!
Diffstat (limited to 'terminal')
| -rw-r--r-- | terminal/vt52.c | 65 |
1 files changed, 65 insertions, 0 deletions
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 <stdint.h> +#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() +{ + +} + + + + |
