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: * @(#)ttychars.h 7.2 (2.11BSD) 1997/4/15
7: */
8:
9: /*
10: * User visible structures and constants
11: * related to terminal handling.
12: */
13: #ifndef _TTYCHARS_
14: #define _TTYCHARS_
15: struct ttychars {
16: char tc_erase; /* erase last character */
17: char tc_kill; /* erase entire line */
18: char tc_intrc; /* interrupt */
19: char tc_quitc; /* quit */
20: char tc_startc; /* start output */
21: char tc_stopc; /* stop output */
22: char tc_eofc; /* end-of-file */
23: char tc_brkc; /* input delimiter (like nl) */
24: char tc_suspc; /* stop process signal */
25: char tc_dsuspc; /* delayed stop process signal */
26: char tc_rprntc; /* reprint line */
27: char tc_flushc; /* flush output (toggles) */
28: char tc_werasc; /* word erase */
29: char tc_lnextc; /* literal next character */
30: };
31:
32: #define CTRL(c) ('c'&037)
33: #define _POSIX_VDISABLE ((unsigned char)'\377')
34: #define CCEQ(val,c) (c == val ? val != _POSIX_VDISABLE : 0)
35:
36: /* default special characters */
37: #define CERASE 0177
38: #define CKILL CTRL(u)
39: #define CINTR CTRL(c)
40: #define CQUIT 034 /* FS, ^\ */
41: #define CSTART CTRL(q)
42: #define CSTOP CTRL(s)
43: #define CEOF CTRL(d)
44: #define CEOT CEOF
45: #define CBRK _POSIX_VDISABLE
46: #define CSUSP CTRL(z)
47: #define CDSUSP CTRL(y)
48: #define CRPRNT CTRL(r)
49: #define CFLUSH CTRL(o)
50: #define CWERASE CTRL(w)
51: #define CLNEXT CTRL(v)
52: #endif /* _TTYCHARS_ */
Defined struct's
Defined macros
CBRK
defined in line
45; used 4 times
CCEQ
defined in line
34; used 18 times
- in /usr/src/sys/sys/tty.c line
865,
871,
883,
895,
901-905(2),
911-915(3),
939-944(2),
965,
985,
1017,
1237,
1248,
1666(2)
CEOF
defined in line
43; used 8 times
CEOT
defined in line
44; used 2 times
CINTR
defined in line
39; used 8 times
CKILL
defined in line
38; used 7 times
CQUIT
defined in line
40; used 5 times
CSTOP
defined in line
42; used 7 times
CSUSP
defined in line
46; used 6 times
CTRL
defined in line
32; used 110 times
- in line 38-51(11)
- in /usr/src/bin/stty/stty.c line
260-261(2)
- in /usr/src/bin/tcsh/ed.init.c line
203
- in /usr/src/games/cribbage/io.c line
20-21(2),
499,
549
- in /usr/src/games/hangman/getguess.c line
26,
63
- in /usr/src/games/hunt/execute.c line
13,
28,
52,
64
- in /usr/src/games/hunt/hunt.h line
142
- in /usr/src/games/mille/move.c line
15,
352
- in /usr/src/games/robots/move.c line
145,
151,
216
- in /usr/src/games/robots/robots.h line
45
- in /usr/src/games/sail/pl_7.c line
208
- in /usr/src/games/snake/move.c line
406-407(2)
- in /usr/src/games/snake/snake.c line
235-236(2),
266,
341,
354
- in /usr/src/sys/sys/tty.c line
927,
996
- in /usr/src/sys/sys/tty_pty.c line
552(2)
- in /usr/src/ucb/PORT/systat/keyboard.c line
37,
43,
60
- in /usr/src/ucb/ex/ex.h line
159-162(3)
- in /usr/src/ucb/ex/ex_cmds.c line
134,
774,
788,
851
- in /usr/src/ucb/ex/ex_cmds2.c line
514(2)
- in /usr/src/ucb/ex/ex_cmdsub.c line
1111,
1134
- in /usr/src/ucb/ex/ex_get.c line
33,
47,
103,
151,
164
- in /usr/src/ucb/ex/ex_put.c line
963-965(2),
986-988(2)
- in /usr/src/ucb/ex/ex_tty.c line
113-116(2)
- in /usr/src/ucb/ex/ex_vget.c line
133,
168-169(2),
227,
233,
357
- in /usr/src/ucb/ex/ex_vmain.c line
195-197(4),
303,
319,
348,
363,
412,
427,
836,
851,
871,
885
- in /usr/src/ucb/ex/ex_voper.c line
393,
487,
534
- in /usr/src/ucb/ex/ex_vops2.c line
491-496(2),
524,
545,
607-608(2),
746-747(2),
755-759(2)
- in /usr/src/ucb/telnet.c line
111-112(2)
- in /usr/src/ucb/tn3270/tn3270.c line
100
- in /usr/src/usr.bin/tip/cmds.c line
770
- in /usr/src/usr.bin/tip/cmdtab.c line
30-32(3)
- in /usr/src/usr.bin/tip/vars.c line
34,
48
Usage of this include