BSD 4_3_Tahoe release
[unix-history] / usr / src / sys / h / ttychars.h
CommitLineData
da7c5cc6 1/*
1810611d 2 * Copyright (c) 1982, 1986 Regents of the University of California.
da7c5cc6
KM
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 *
ca67e7b4 6 * @(#)ttychars.h 7.2 (Berkeley) 12/18/87
da7c5cc6 7 */
3208d444
SL
8
9/*
10 * User visible structures and constants
11 * related to terminal handling.
12 */
53e1ae2c
SL
13#ifndef _TTYCHARS_
14#define _TTYCHARS_
3208d444
SL
15struct 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
ca67e7b4 32#define CTRL(c) (c&037)
3208d444
SL
33
34/* default special characters */
a7fc5dcd 35#define CERASE 0177
ca67e7b4
C
36#define CKILL CTRL('u')
37#define CINTR CTRL('c')
53e1ae2c 38#define CQUIT 034 /* FS, ^\ */
ca67e7b4
C
39#define CSTART CTRL('q')
40#define CSTOP CTRL('s')
41#define CEOF CTRL('d')
3208d444
SL
42#define CEOT CEOF
43#define CBRK 0377
ca67e7b4
C
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')
53e1ae2c 50#endif