Commit | Line | Data |
---|---|---|
69739ccc BJ |
1 | struct sgttyb { |
2 | char sg_ispeed; | |
3 | char sg_ospeed; | |
4 | char sg_erase; | |
5 | char sg_kill; | |
6 | int sg_flags; | |
7 | }; | |
8 | ||
9 | #define CBREAK 02 | |
10 | #define LCASE 04 | |
11 | #define ECHO 010 | |
12 | #define CRMOD 020 | |
13 | #define RAW 040 | |
14 | #define ODDP 0100 | |
15 | #define EVENP 0200 | |
16 | #define ANYP 0300 | |
17 | #define NLDELAY 001400 | |
18 | #define TBDELAY 006000 | |
19 | #define XTABS 06000 | |
20 | #define CRDELAY 030000 | |
21 | #define VTDELAY 040000 | |
22 | #define BSDELAY 0100000 | |
23 | #define ALLDELAY 0177400 | |
24 | ||
25 | #define CR0 0 | |
26 | #define CR1 010000 | |
27 | #define CR2 020000 | |
28 | #define CR3 030000 | |
29 | #define NL0 0 | |
30 | #define NL1 000400 | |
31 | #define NL2 001000 | |
32 | #define NL3 001400 | |
33 | #define TAB0 0 | |
34 | #define TAB1 002000 | |
35 | #define TAB2 004000 | |
36 | #define FF0 0 | |
37 | #define FF1 040000 | |
38 | #define BS0 0 | |
39 | #define BS1 0100000 | |
40 | ||
41 | #define B0 0 | |
42 | #define B50 1 | |
43 | #define B75 2 | |
44 | #define B110 3 | |
45 | #define B134 4 | |
46 | #define B150 5 | |
47 | #define B200 6 | |
48 | #define B300 7 | |
49 | #define B600 8 | |
50 | #define B1200 9 | |
51 | #define B1800 10 | |
52 | #define B2400 11 | |
53 | #define B4800 12 | |
54 | #define B9600 13 | |
55 | #define EXTA 14 | |
56 | #define EXTB 15 |