1 /* $Id: sgtty.h,v 2.2 1994/06/24 11:04:19 ceriel Exp $ */
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".
6 /* Data structures for ioctl/stty/gtty */
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 */
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) */
25 /* Fields in t_flags. */
26 #define ALLDELAY 0177400
28 #define BSDELAY 0100000
32 #define VTDELAY 0040000
36 #define CRDELAY 0030000
42 #define XTABS 0006000 /* do tab expansion */
44 #define TBDELAY 0006000
49 #define NLDELAY 0001400
59 #define RAW 0000040 /* enable raw mode */
60 #define CRMOD 0000020 /* map lf to cr + lf */
61 #define ECHO 0000010 /* echo input */
63 #define CBREAK 0000002 /* enable cbreak mode */
64 #define TANDEM 0000001
65 /*#define COOKED 0000000 /* neither CBREAK nor RAW */
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)