date and time created 91/05/02 13:34:29 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 3 May 1991 04:34:29 +0000 (20:34 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 3 May 1991 04:34:29 +0000 (20:34 -0800)
SCCS-vsn: bin/stty/cchar.c 5.1

usr/src/bin/stty/cchar.c [new file with mode: 0644]

diff --git a/usr/src/bin/stty/cchar.c b/usr/src/bin/stty/cchar.c
new file mode 100644 (file)
index 0000000..861bb6e
--- /dev/null
@@ -0,0 +1,51 @@
+/*-
+ * Copyright (c) 1991 The Regents of the University of California.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
+ */
+
+#ifndef lint
+static char sccsid[] = "@(#)cchar.c    5.1 (Berkeley) %G%";
+#endif /* not lint */
+
+#include <sys/types.h>
+#include <termios.h>
+#include <stddef.h>
+#include "stty.h"
+
+/*
+ * Special control characters.
+ *
+ * Cchars1 are the standard names, cchars2 are the old aliases.
+ * The first are displayed, but both are recognized on the
+ * command line.
+ */
+struct cchar cchars1[] = {
+       "discard",      VDISCARD,       CDISCARD,
+       "dsusp",        VDSUSP,         CDSUSP,
+       "eof",          VEOF,           CEOF,
+       "eol",          VEOL,           CEOL,
+       "eol2",         VEOL2,          CEOL,
+       "erase",        VERASE,         CERASE,
+       "intr",         VINTR,          CINTR,
+       "kill",         VKILL,          CKILL,
+       "lnext",        VLNEXT,         CLNEXT,
+       "quit",         VQUIT,          CQUIT,
+       "reprint",      VREPRINT,       CREPRINT,
+       "start",        VSTART,         CSTART,
+       "status",       VSTATUS,        CSTATUS,
+       "stop",         VSTOP,          CSTOP,
+       "susp",         VSUSP,          CSUSP,
+       "werase",       VWERASE,        CWERASE,
+       NULL
+};
+
+struct cchar cchars2[] = {
+       "brk",          VEOL,           CEOL,
+       "flush",        VDISCARD,       CDISCARD,
+       "rprnt",        VREPRINT,       CREPRINT,
+       "xoff",         VSTOP,          CSTOP,
+       "xon",          VSTART,         CSTART,
+       NULL
+};