From f684a7634a0428396d65dcbb3ee0e4ae052a2828 Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 31 Jan 1996 05:11:04 +0000 Subject: [PATCH] from ragge; make ^] not be sent on return from ddb --- sys/arch/vax/vax/gencons.c | 9 +++++++-- 1 file 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) -- 2.20.1