|
|
1.1 root 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 (Berkeley) 12/18/87
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:
34: /* default special characters */
35: #define CERASE 0177
36: #define CKILL CTRL('u')
37: #define CINTR CTRL('c')
38: #define CQUIT 034 /* FS, ^\ */
39: #define CSTART CTRL('q')
40: #define CSTOP CTRL('s')
41: #define CEOF CTRL('d')
42: #define CEOT CEOF
43: #define CBRK 0377
44: #define CSUSP CTRL('z')
45: #define CDSUSP CTRL('y')
46: #define CRPRNT CTRL('r')
47: #define CFLUSH CTRL('o')
48: #define CWERASE CTRL('w')
49: #define CLNEXT CTRL('v')
50: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.