Menu

[26e832]: / joe / vt.h  Maximize  Restore  History

Download this file

48 lines (33 with data), 679 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#define MAXARGS 2
enum vt_state {
vt_idle,
vt_esc,
vt_args,
vt_cmd,
vt_utf,
vt_osc,
vt_osce
};
struct vt_context {
enum vt_state state;
/* Record attribute sequence */
char buf[1024];
ptrdiff_t bufx;
/* Numeric arguments */
ptrdiff_t argv[MAXARGS + 1];
ptrdiff_t argc;
P *top;
ptrdiff_t height;
ptrdiff_t width;
ptrdiff_t regn_top;
ptrdiff_t regn_bot;
P *vtcur;
B *b;
KBD *kbd;
int attr; /* Current attributes */
struct utf8_sm utf8_sm;
};
VT *mkvt(B *b, P *top, ptrdiff_t height, ptrdiff_t width);
void vtrm(VT *vt);
MACRO *vt_data(VT *vt, char **indat, ptrdiff_t *insiz);
void vt_resize(VT *vt, P *top, ptrdiff_t height, ptrdiff_t width);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.