Pristine Ack-5.5
[Ack-5.5.git] / include / _tail_mon / sgtty.h
1 /* $Id: sgtty.h,v 2.2 1994/06/24 11:04:19 ceriel Exp $ */
2 /*
3  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4  * See the copyright notice in the ACK home directory, in the file "Copyright".
5  */
6 /* Data structures for ioctl/stty/gtty */
7
8 struct sgttyb {
9   char sg_ispeed;               /* input speed (not used) */
10   char sg_ospeed;               /* output speed (not used) */
11   char sg_erase;                /* erase character */
12   char sg_kill;                 /* kill character */
13   short sg_flags;               /* mode flags */
14 };
15
16 struct tchars {
17   char t_intrc;                 /* SIGINT char */
18   char t_quitc;                 /* SIGQUIT char */
19   char t_startc;                /* start output (initially CTRL-Q) */
20   char t_stopc;                 /* stop output  (initially CTRL-S) */
21   char t_eofc;                  /* EOF (initially CTRL-D) */
22   char t_brkc;                  /* input delimiter (like nl) */
23 };
24
25 /* Fields in t_flags. */
26 #define ALLDELAY     0177400
27
28 #define BSDELAY      0100000
29 #  define BS0        0000000
30 #  define BS1        0100000
31
32 #define VTDELAY      0040000
33 #  define FF0        0000000
34 #  define FF1        0040000
35
36 #define CRDELAY      0030000
37 #  define CR0        0000000
38 #  define CR1        0010000
39 #  define CR2        0020000
40 #  define CR3        0030000
41
42 #define XTABS        0006000    /* do tab expansion */
43
44 #define TBDELAY      0006000
45 #  define TAB0       0000000
46 #  define TAB1       0002000
47 #  define TAB2       0004000
48
49 #define NLDELAY      0001400
50 #  define NL0        0000000
51 #  define NL1        0000400
52 #  define NL2        0001000
53 #  define NL3        0001400
54
55 #define ANYP         0000300
56 #define EVENP        0000200
57 #define ODDP         0000100
58
59 #define RAW          0000040    /* enable raw mode */
60 #define CRMOD        0000020    /* map lf to cr + lf */
61 #define ECHO         0000010    /* echo input */
62 #define LCASE        0000004
63 #define CBREAK       0000002    /* enable cbreak mode */
64 #define TANDEM       0000001
65 /*#define COOKED       0000000  /* neither CBREAK nor RAW */
66
67 #define TIOCGETP (('t'<<8) | 8)
68 #define TIOCSETP (('t'<<8) | 9)
69 #define TIOCSETN (('t'<<8) | 10)
70 #define TIOCEXCL (('t'<<8) | 13)
71 #define TIOCNXCL (('t'<<8) | 14)
72 #define TIOCHPCL (('t'<<8) | 2)
73 #define TIOCGETC (('t'<<8) | 18)
74 #define TIOCSETC (('t'<<8) | 17)
75
76 #define B0      0
77 #define B50     1
78 #define B75     2
79 #define B110    3
80 #define B134    4
81 #define B150    5
82 #define B200    6
83 #define B300    7
84 #define B600    8
85 #define B1200   9
86 #define B1800   10
87 #define B2400   11
88 #define B4800   12
89 #define B9600   13
90 #define EXTA    14
91 #define EXTB    15