diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-13 20:31:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-13 20:31:26 +0000 |
commit | 212360815eba6d3935d16bebf1987f65f9664459 (patch) | |
tree | 5e63fa93af17634604d8acc19d640fb9263f8797 /sys/arch | |
parent | 687c9c38df459fc0fd66abadbfe57635b45f58b4 (diff) |
for pcons tty and kernel console (ie. boot -a) input, replace prom ^H
with ^? as that is what we have standardized on for all delete keys.
this got missed, meaning boot -a and RAMDISK console tty were gross.
ok miod
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/consinit.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/dev/pcons.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/consinit.c b/sys/arch/sparc64/dev/consinit.c index f088b6321eb..799c5974348 100644 --- a/sys/arch/sparc64/dev/consinit.c +++ b/sys/arch/sparc64/dev/consinit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: consinit.c,v 1.8 2003/06/16 20:46:10 miod Exp $ */ +/* $OpenBSD: consinit.c,v 1.9 2004/09/13 20:31:25 deraadt Exp $ */ /* $NetBSD: consinit.c,v 1.9 2000/10/20 05:32:35 mrg Exp $ */ /*- @@ -124,6 +124,8 @@ prom_cngetc(dev) #endif if (ch == '\r') ch = '\n'; + if (ch == '\b') + ch = '\177'; return ch; } diff --git a/sys/arch/sparc64/dev/pcons.c b/sys/arch/sparc64/dev/pcons.c index 147ff99cecb..b728e65d541 100644 --- a/sys/arch/sparc64/dev/pcons.c +++ b/sys/arch/sparc64/dev/pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcons.c,v 1.7 2003/10/03 16:44:50 miod Exp $ */ +/* $OpenBSD: pcons.c,v 1.8 2004/09/13 20:31:25 deraadt Exp $ */ /* $NetBSD: pcons.c,v 1.7 2001/05/02 10:32:20 scw Exp $ */ /*- @@ -333,8 +333,11 @@ pcons_poll(aux) while (OF_read(stdin, &ch, 1) > 0) { cn_check_magic(tp->t_dev, ch, pcons_cnm_state); - if (tp && (tp->t_state & TS_ISOPEN)) + if (tp && (tp->t_state & TS_ISOPEN)) { + if (ch == '\b') + ch = '\177'; (*linesw[tp->t_line].l_rint)(ch, tp); + } } timeout_add(&sc->sc_poll_to, 1); } |