diff options
| author | Michal Idziorek <m.i@gmx.at> | 2015-05-17 17:14:07 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2015-05-17 17:14:07 +0200 |
| commit | 29ea3208b004f15dafa48ae29a75ba7f0c093a74 (patch) | |
| tree | bc39ac9b187753e9a16dbac5bf9c2523b32097f9 /terminal/vt52.h | |
| parent | 819a4e871058f2dc4a2e255ecbe5a2c49cc8450c (diff) | |
working on vt52 layer
Diffstat (limited to 'terminal/vt52.h')
| -rw-r--r-- | terminal/vt52.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/terminal/vt52.h b/terminal/vt52.h new file mode 100644 index 0000000..557c247 --- /dev/null +++ b/terminal/vt52.h @@ -0,0 +1,33 @@ +#ifndef VT52_H +#define VT52_H + +#include <stdint.h> + + +// REQUIREMENTS +// * kballoc // block wise in-kernel allocation + + +typedef struct term_screen_struct +{ + + void (*put_char)(uint8_t c,uint8_t color, uint32_t x, uint32_t y); + +}term_screen; + +typedef struct vt52_tty_struct +{ + + uint32_t width; + uint32_t height; + uint32_t x; + uint32_t y; + uint32_t *data; // screen data + term_screen *screen; + +}vt52_tty; + +vt52_tty vt52_init(term_screen *screen); +void vt52_put(vt52_tty *tty, uint8_t c); + +#endif |
