Implemented game profiles
[rlserver.git] / vt100.h
blob567ae9c168a4bfbd65e4acb49b078388aec86bc1
1 #ifndef __RLS_VT100__
2 #define __RLS_VT100__
4 #include <stdint.h>
7 typedef struct vt100
9 int wid, hgt; // size
10 int cx, cy; // cursor position
11 int att, col; // current attribute and colour
12 uint8_t *screen, *colour, *attrib; // screen data
13 } vt100;
16 vt100* init_term (int width, int height);
17 vt100* resize_term (vt100 *term, int width, int height);
18 void term_process (vt100 *term, const uint8_t *data, int len);
19 void term_copy_data (vt100 *term, int fd);
21 #endif