summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/ascii.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-01-12 20:43:54 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-01-12 20:43:54 +0000
commit40785a5e24d9c78e87159098b413e8a23b404bb4 (patch)
tree04cb77146cb9c9745f32a7f77178fd13151c9724 /sys/dev/wscons/ascii.h
parent7cc96ddeb332eda80f8e373646acb9ffa998e14f (diff)
Recognize CAN and SUB control characters, and cancel any current escape
sequence when they appear. Per VT100 manual via naddy@, ok naddy@
Diffstat (limited to 'sys/dev/wscons/ascii.h')
-rw-r--r--sys/dev/wscons/ascii.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/wscons/ascii.h b/sys/dev/wscons/ascii.h
index b8124a0f5d5..4088f5f6476 100644
--- a/sys/dev/wscons/ascii.h
+++ b/sys/dev/wscons/ascii.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ascii.h,v 1.4 2000/05/16 23:49:09 mickey Exp $ */
+/* $OpenBSD: ascii.h,v 1.5 2009/01/12 20:43:53 miod Exp $ */
/* $NetBSD: ascii.h,v 1.3 1998/06/20 19:11:04 drochner Exp $ */
#define ASCII_NUL 0x00 /* nul */
@@ -11,4 +11,6 @@
#define ASCII_CR 0x0d /* carriage return */
#define ASCII_SO 0x0e /* shift out */
#define ASCII_SI 0x0f /* shift in */
+#define ASCII_CAN 0x18
+#define ASCII_SUB 0x1a
#define ASCII_ESC 0x1b /* escape */