Make <DEL> an alternative rubout character for command input; many

serial terminals use this as their default rubout key.
This commit is contained in:
joerg 1999-03-31 08:28:42 +00:00
parent 931788c380
commit 378da8f135
2 changed files with 6 additions and 4 deletions

View File

@ -14,7 +14,7 @@
*/
/*
* $Id: boot2.c,v 1.19 1999/01/24 00:10:10 msmith Exp $
* $Id: boot2.c,v 1.20 1999/01/29 03:36:42 rnordier Exp $
*/
#include <sys/param.h>
@ -635,9 +635,10 @@ getstr(char *str, int size)
case 0:
break;
case '\b':
case '\177':
if (s > str) {
s--;
putchar(c);
putchar('\b');
putchar(' ');
} else
c = 0;

View File

@ -14,7 +14,7 @@
*/
/*
* $Id: boot2.c,v 1.19 1999/01/24 00:10:10 msmith Exp $
* $Id: boot2.c,v 1.20 1999/01/29 03:36:42 rnordier Exp $
*/
#include <sys/param.h>
@ -635,9 +635,10 @@ getstr(char *str, int size)
case 0:
break;
case '\b':
case '\177':
if (s > str) {
s--;
putchar(c);
putchar('\b');
putchar(' ');
} else
c = 0;