Commit | Line | Data |
---|---|---|
17865084 | 1 | /* |
377a2410 | 2 | * @(#)tt.h 3.7 83/08/24 |
17865084 EW |
3 | */ |
4 | ||
5 | struct tt { | |
6 | int (*tt_init)(); | |
e908bfac | 7 | int (*tt_end)(); |
17865084 EW |
8 | int (*tt_setinsert)(); |
9 | int (*tt_setmodes)(); | |
e908bfac | 10 | int (*tt_move)(); |
17865084 EW |
11 | int (*tt_insline)(); |
12 | int (*tt_delline)(); | |
13 | int (*tt_delchar)(); | |
14 | int (*tt_write)(); | |
15 | int (*tt_putc)(); | |
16 | int (*tt_blank)(); | |
17 | int (*tt_clreol)(); | |
18 | int (*tt_clreos)(); | |
19 | int (*tt_clear)(); | |
17865084 EW |
20 | int tt_nrow; |
21 | int tt_ncol; | |
093ab7e3 | 22 | char tt_availmodes; |
5e785082 | 23 | char tt_wrap; /* has auto wrap around */ |
377a2410 | 24 | char tt_retain; /* can retain below (db flag) */ |
17865084 EW |
25 | char *tt_frame; |
26 | }; | |
27 | ||
28 | struct tt tt; | |
29 | ||
30 | struct tt_tab { | |
31 | char *tt_name; | |
32 | int tt_len; | |
33 | int (*tt_func)(); | |
34 | }; | |
35 | ||
36 | struct tt_tab tt_tab[]; | |
c3f80cb5 EW |
37 | |
38 | /* | |
39 | * nicer interface to termcap routines | |
40 | */ | |
41 | char tt_strings[1024]; /* string buffer */ | |
42 | char *tt_strp; /* pointer for it */ | |
43 | ||
44 | int tt_pc(); /* just putchar() */ | |
45 | int tt_sc(); /* *tt_strp++ = c */ | |
46 | char *tt_xgetstr(); /* tgetstr() and expand delays */ | |
47 | ||
48 | #define tt_tgetstr(s) tgetstr((s), &tt_strp) | |
49 | #define tt_tputs(s, n) tputs((s), (n), tt_pc) |