config: added 'a' tag
[fbpad.git] / term.h
blob04564466032663562deca7464e1b00f03e3bd085
1 #define ESC 27
3 struct term_state {
4 int row, col;
5 int fg, bg;
6 unsigned int mode;
7 };
9 struct term {
10 int fd;
11 int pid;
12 int top, bot;
13 struct term_state cur, sav;
14 unsigned int screen[MAXCHARS];
15 unsigned char fgs[MAXCHARS];
16 unsigned char bgs[MAXCHARS];
19 #define TERM_HIDDEN 0
20 #define TERM_VISIBLE 1
21 #define TERM_REDRAW 2
23 void term_load(struct term *term, int visible);
24 void term_save(struct term *term);
26 void term_read(void);
27 void term_send(int c);
28 void term_exec(char *cmd);
29 void term_end(void);
30 void term_screenshot(void);