summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-06 16:26:58 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-06 16:26:58 +0000
commitb4961539d25a0eba0dc527484e9d915ba2514ac8 (patch)
treee72733ed88c8ea291d18d117a572540b8db15839
parentcc90388122158a88210299721a27d2f9e54d46ac (diff)
fix twiddle() without breaking backspace
-rw-r--r--sys/arch/i386/stand/boot/cmd.c4
-rw-r--r--sys/arch/i386/stand/libsa/dev_i386.c4
-rw-r--r--sys/stand/boot/cmd.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/i386/stand/boot/cmd.c b/sys/arch/i386/stand/boot/cmd.c
index 84f52e813cf..11a96c014c3 100644
--- a/sys/arch/i386/stand/boot/cmd.c
+++ b/sys/arch/i386/stand/boot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.15 1997/05/31 15:48:25 mickey Exp $ */
+/* $OpenBSD: cmd.c,v 1.16 1997/06/06 16:26:56 kstailey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -272,7 +272,7 @@ readline(buf, to)
break;
case '\b':
if (p > buf) {
- putchar('\b');
+ putchar('\177');
p--;
pe--;
}
diff --git a/sys/arch/i386/stand/libsa/dev_i386.c b/sys/arch/i386/stand/libsa/dev_i386.c
index 92ce1f99cfd..6f2fb598902 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.11 1997/05/29 04:35:29 mickey Exp $ */
+/* $OpenBSD: dev_i386.c,v 1.12 1997/06/06 16:26:57 kstailey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -113,7 +113,7 @@ putchar(c)
static int pos = 0;
switch(c) {
- case '\b': /* BS erases */
+ case '\177': /* DEL erases */
putc('\b');
putc(' ');
putc('\b');
diff --git a/sys/stand/boot/cmd.c b/sys/stand/boot/cmd.c
index 84f52e813cf..11a96c014c3 100644
--- a/sys/stand/boot/cmd.c
+++ b/sys/stand/boot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.15 1997/05/31 15:48:25 mickey Exp $ */
+/* $OpenBSD: cmd.c,v 1.16 1997/06/06 16:26:56 kstailey Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -272,7 +272,7 @@ readline(buf, to)
break;
case '\b':
if (p > buf) {
- putchar('\b');
+ putchar('\177');
p--;
pe--;
}