diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1998-08-15 22:47:54 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1998-08-15 22:47:54 +0000 |
commit | 7fa9b0319d4502c54335454c4d0e5589ebcf7e6f (patch) | |
tree | 96f1ceb55feacd1d3bac76f355ce09ddaf7b04a6 /sys/dev/wscons/wscons.c | |
parent | 7931b8588f564d72815d8ccdd897665d7d0e1fbe (diff) |
fix kbd generated NULs from CTRL-@ and CTRL-SP
Diffstat (limited to 'sys/dev/wscons/wscons.c')
-rw-r--r-- | sys/dev/wscons/wscons.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/wscons/wscons.c b/sys/dev/wscons/wscons.c index a01d15ff0ff..ea1bdffd003 100644 --- a/sys/dev/wscons/wscons.c +++ b/sys/dev/wscons/wscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wscons.c,v 1.6 1997/11/06 12:26:58 niklas Exp $ */ +/* $OpenBSD: wscons.c,v 1.7 1998/08/15 22:47:53 kstailey Exp $ */ /* $NetBSD: wscons.c,v 1.10 1996/12/05 01:39:47 cgd Exp $ */ /* @@ -233,8 +233,11 @@ wscons_input(cp) tp = sc->sc_tty; #endif - while (*cp) - (*linesw[tp->t_line].l_rint)(*cp++, tp); + if (*cp == '\0') /* deal with kbd generated NULs */ + (*linesw[tp->t_line].l_rint)(*cp, tp); + else + while (*cp) + (*linesw[tp->t_line].l_rint)(*cp++, tp); } |