1: /*
2: * Copyright (c) 1982, 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)ttydefaults.h 1.2 (2.11BSD) 1997/4/15
7: */
8:
9: /*
10: * System wide defaults of terminal state.
11: */
12: #ifndef _TTYDEFAULTS_
13: #define _TTYDEFAULTS_
14:
15: #define CTRL(x) ('x'&037)
16: /*
17: * Control Character Defaults
18: */
19: #define CEOF CTRL(d)
20: #define CEOL _POSIX_VDISABLE
21: #define CERASE CTRL(h)
22: #define CINTR CTRL(c)
23: #define CKILL CTRL(u)
24: #define CMIN 1
25: #define CQUIT 034 /* FS, ^\ */
26: #define CSUSP CTRL(z)
27: #define CTIME 1
28: #define CDSUSP CTRL(y)
29: #define CSTART CTRL(q)
30: #define CSTOP CTRL(s)
31: #define CLNEXT CTRL(v)
32: #define CFLUSHO CTRL(o)
33: #define CWERASE CTRL(w)
34: #define CREPRINT CTRL(r)
35: #define CQUOTE '\\'
36: #define CEOT CEOF
37:
38: #define CBRK CEOL
39: #define CRPRNT CREPRINT
40: #define CFLUSH CFLUSHO
41:
42: /*
43: * Settings on first open of a tty.
44: */
45: #define TTYDEF_SPEED (B9600)
46:
47: #endif /*_TTYDEFAULTS_*/
48:
49: /*
50: * Define TTYDEFCHARS to include an array of default control characters.
51: */
52: #ifdef TTYDEFCHARS
53: u_char ttydefchars[NCC] = {
54: CEOF, CEOL, CEOL, CERASE, CWERASE, CKILL, CREPRINT, CQUOTE,
55: CINTR, CQUIT, CSUSP, CDSUSP, CSTART, CSTOP, CLNEXT,
56: CFLUSHO, CMIN, CTIME, _POSIX_VDISABLE, _POSIX_VDISABLE
57: };
58: #endif /*TTYDEFCHARS*/
Defined macros
CBRK
defined in line
38;
never used
CEOF
defined in line
19; used 2 times
CEOL
defined in line
20; used 3 times
CEOT
defined in line
36;
never used
CINTR
defined in line
22; used 1 times
CKILL
defined in line
23; used 1 times
CMIN
defined in line
24; used 1 times
CQUIT
defined in line
25; used 1 times
CSTOP
defined in line
30; used 1 times
CSUSP
defined in line
26; used 1 times
CTIME
defined in line
27; used 1 times
CTRL
defined in line
15; used 12 times