summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-31 05:11:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-01-31 05:11:05 +0000
commit3379df0e53ba706bbaf67ad5cb84b8fbb95c5098 (patch)
tree863e57376c55022c165fe4f7688db599b42cc4e5 /sys
parent8191a478609aef85867d64f7aad2ec09de4a39e7 (diff)
from ragge; make ^] not be sent on return from ddb
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/vax/vax/gencons.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/gencons.c b/sys/arch/vax/vax/gencons.c
index ddf31f6ef87..cfe1b9c2cfc 100644
--- a/sys/arch/vax/vax/gencons.c
+++ b/sys/arch/vax/vax/gencons.c
@@ -1,4 +1,4 @@
-/* $NetBSD: gencons.c,v 1.6 1995/08/21 03:24:46 ragge Exp $ */
+/* $NetBSD: gencons.c,v 1.7 1996/01/28 12:11:57 ragge Exp $ */
/*
* Copyright (c) 1994 Gordon W. Ross
@@ -279,9 +279,14 @@ int
gencngetc(dev)
dev_t dev;
{
+ int i;
+
while ((mfpr(PR_RXCS) & GC_DON) == 0) /* Receive chr */
;
- return mfpr(PR_RXDB) & 0x7f;
+ i = mfpr(PR_RXDB) & 0x7f;
+ if (i == 13)
+ i = 10;
+ return i;
}
conout(str)