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.2 (Berkeley) 06/04/91"; 10 #endif /* not lint */ 11 12 #include <sys/types.h> 13 #include <stddef.h> 14 #include "stty.h" 15 16 /* 17 * Special control characters. 18 * 19 * Cchars1 are the standard names, cchars2 are the old aliases. 20 * The first are displayed, but both are recognized on the 21 * command line. 22 */ 23 struct cchar cchars1[] = { 24 "discard", VDISCARD, CDISCARD, 25 "dsusp", VDSUSP, CDSUSP, 26 "eof", VEOF, CEOF, 27 "eol", VEOL, CEOL, 28 "eol2", VEOL2, CEOL, 29 "erase", VERASE, CERASE, 30 "intr", VINTR, CINTR, 31 "kill", VKILL, CKILL, 32 "lnext", VLNEXT, CLNEXT, 33 "quit", VQUIT, CQUIT, 34 "reprint", VREPRINT, CREPRINT, 35 "start", VSTART, CSTART, 36 "status", VSTATUS, CSTATUS, 37 "stop", VSTOP, CSTOP, 38 "susp", VSUSP, CSUSP, 39 "werase", VWERASE, CWERASE, 40 NULL 41 }; 42 43 struct cchar cchars2[] = { 44 "brk", VEOL, CEOL, 45 "flush", VDISCARD, CDISCARD, 46 "rprnt", VREPRINT, CREPRINT, 47 "xoff", VSTOP, CSTOP, 48 "xon", VSTART, CSTART, 49 NULL 50 }; 51