vt102: mention comment sources
[fbpad.git] / term.h
blob623993cb1ab7cbf77cc1ff7542c0f1c36004d1df
1 #define ESC 27
3 struct term_state {
4 int row, col;
5 int fg, bg;
6 int top, bot;
7 unsigned long mode;
8 };
10 struct term {
11 int fd;
12 int pid;
13 struct square {
14 int c;
15 short fg;
16 short bg;
17 } screen[MAXCHARS];
18 struct term_state cur, sav;
21 #define TERM_HIDDEN 0
22 #define TERM_VISIBLE 1
23 #define TERM_REDRAW 2
25 void term_load(struct term *term, int visible);
26 void term_save(struct term *term);
28 void term_read(void);
29 void term_send(int c);
30 void term_exec(char *cmd);
31 void term_end(void);