xref: /original-bsd/bin/stty/cchar.c (revision ba762ddc)
1 /*-
2  * Copyright (c) 1991 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)cchar.c	5.1 (Berkeley) 05/02/91";
10 #endif /* not lint */
11 
12 #include <sys/types.h>
13 #include <termios.h>
14 #include <stddef.h>
15 #include "stty.h"
16 
17 /*
18  * Special control characters.
19  *
20  * Cchars1 are the standard names, cchars2 are the old aliases.
21  * The first are displayed, but both are recognized on the
22  * command line.
23  */
24 struct cchar cchars1[] = {
25 	"discard",	VDISCARD, 	CDISCARD,
26 	"dsusp", 	VDSUSP,		CDSUSP,
27 	"eof",		VEOF,		CEOF,
28 	"eol",		VEOL,		CEOL,
29 	"eol2",		VEOL2,		CEOL,
30 	"erase",	VERASE,		CERASE,
31 	"intr",		VINTR,		CINTR,
32 	"kill",		VKILL,		CKILL,
33 	"lnext",	VLNEXT,		CLNEXT,
34 	"quit",		VQUIT,		CQUIT,
35 	"reprint",	VREPRINT, 	CREPRINT,
36 	"start",	VSTART,		CSTART,
37 	"status",	VSTATUS, 	CSTATUS,
38 	"stop",		VSTOP,		CSTOP,
39 	"susp",		VSUSP,		CSUSP,
40 	"werase",	VWERASE,	CWERASE,
41 	NULL
42 };
43 
44 struct cchar cchars2[] = {
45 	"brk",		VEOL,		CEOL,
46 	"flush",	VDISCARD, 	CDISCARD,
47 	"rprnt",	VREPRINT, 	CREPRINT,
48 	"xoff",		VSTOP,		CSTOP,
49 	"xon",		VSTART,		CSTART,
50 	NULL
51 };
52