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