mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix false backspace reporting
This commit is contained in:
parent
d9f3f4f9bb
commit
8868bb111b
1 changed files with 1 additions and 3 deletions
|
|
@ -261,7 +261,6 @@ report(name, which, def)
|
|||
u_int def;
|
||||
{
|
||||
u_int old, new;
|
||||
char *bp, buf[1024];
|
||||
|
||||
new = mode.c_cc[which];
|
||||
old = oldmode.c_cc[which];
|
||||
|
|
@ -271,8 +270,7 @@ report(name, which, def)
|
|||
|
||||
(void)fprintf(stderr, "%s %s ", name, old == new ? "is" : "set to");
|
||||
|
||||
bp = buf;
|
||||
if (tgetstr("kb", &bp) && new == buf[0] && buf[1] == '\0')
|
||||
if (new == 010)
|
||||
(void)fprintf(stderr, "backspace.\n");
|
||||
else if (new == 0177)
|
||||
(void)fprintf(stderr, "delete.\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue