summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/consinit.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-13 20:31:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-13 20:31:26 +0000
commit212360815eba6d3935d16bebf1987f65f9664459 (patch)
tree5e63fa93af17634604d8acc19d640fb9263f8797 /sys/arch/sparc64/dev/consinit.c
parent687c9c38df459fc0fd66abadbfe57635b45f58b4 (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/sparc64/dev/consinit.c')
-rw-r--r--sys/arch/sparc64/dev/consinit.c4
1 files changed, 3 insertions, 1 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;
}