diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-22 00:38:36 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-22 00:38:36 +0000 |
commit | 6d24fda753c13a25823071359301a244afc8cabc (patch) | |
tree | b5ff1229db3d1f1958d6edade11cfa0f1082285d /sys | |
parent | 330a1f9688a2a6b5d934fcfe220c6d0412ef4e4d (diff) |
don't echo all the control chars, not only bs&del
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/stand/libsa/dev_i386.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/i386/stand/libsa/dev_i386.c b/sys/arch/i386/stand/libsa/dev_i386.c index 13ee9ec0910..59934b65021 100644 --- a/sys/arch/i386/stand/libsa/dev_i386.c +++ b/sys/arch/i386/stand/libsa/dev_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_i386.c,v 1.18 1997/08/21 22:19:33 mickey Exp $ */ +/* $OpenBSD: dev_i386.c,v 1.19 1997/08/22 00:38:35 mickey Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -117,7 +117,7 @@ devboot(bootdev, p) void putchar(c) - register int c; + register int c; { static int pos = 0; @@ -150,14 +150,14 @@ putchar(c) int getchar() { - int c = cngetc(); - - if (c == '\b' || c == '\177') - return(c); + register int c = cngetc(); if (c == '\r') c = '\n'; + if ((c < ' ' && c != '\n') || c == '\177') + return(c); + putchar(c); return(c); |