Commit | Line | Data |
---|---|---|
b757840f KT |
1 | struct clist { |
2 | int c_cc; | |
3 | int c_cf; | |
4 | int c_cl; | |
5 | }; | |
6 | ||
7 | struct tty { | |
8 | struct clist t_rawq; | |
9 | struct clist t_canq; | |
10 | struct clist t_outq; | |
11 | int t_flags; | |
12 | int *t_addr; | |
13 | char t_delct; | |
14 | char t_col; | |
15 | char t_erase; | |
16 | char t_kill; | |
17 | char t_state; | |
18 | char t_char; | |
19 | int t_speeds; | |
20 | }; | |
21 | ||
22 | char partab[]; | |
23 | ||
24 | #define TTIPRI 10 | |
25 | #define TTOPRI 20 | |
26 | #define CERASE '#' | |
27 | #define CEOT 004 | |
28 | #define CKILL '@' | |
29 | #define CQUIT 034 /* FS, cntl shift L */ | |
30 | #define CINTR 0177 /* DEL */ | |
31 | ||
32 | /* limits */ | |
33 | #define TTHIWAT 50 | |
34 | #define TTLOWAT 30 | |
35 | #define TTYHOG 256 | |
36 | ||
37 | /* modes */ | |
38 | #define NODELAY 01 | |
39 | #define XTABS 02 | |
40 | #define LCASE 04 | |
41 | #define ECHO 010 | |
42 | #define CRMOD 020 | |
43 | #define RAW 040 | |
44 | #define ODDP 0100 | |
45 | #define EVENP 0200 | |
46 | #define HUPCL 0400 | |
47 | #define NTDELAY 010000 | |
48 | ||
49 | /* Bits */ | |
50 | #define DONE 0200 | |
51 | #define IENABLE 0100 | |
52 | #define TIMEOUT 01 | |
53 | #define WOPEN 02 | |
54 | #define ISOPEN 04 | |
55 | #define SSTART 010 | |
56 | #define CARR_ON 020 | |
57 | #define BUSY 040 |