term: handle DECSTBM to set scrolling region
[fbpad.git] / term.h
blob2497f4bac2ca36f9121f7cdf646bcc0b8f996fd2
1 #define ESC 27
3 struct term_state {
4 int row, col;
5 int fd;
6 int pid;
7 int fg, bg;
8 struct square {
9 int c;
10 int fg;
11 int bg;
12 } screen[MAXCHARS];
15 void term_save(struct term_state *state);
16 void term_load(struct term_state *state);
17 int term_fd(void);
18 void term_read(void);
19 void term_send(int c);
20 void term_exec(char *cmd);
21 void term_end(void);
22 void term_blank(void);
23 void term_init(void);
24 void term_free(void);