summaryrefslogtreecommitdiffstats
path: root/usr.bin/tset
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-05-14 22:46:15 +0000
committerache <ache@FreeBSD.org>1995-05-14 22:46:15 +0000
commit5999b4103596fc93e77293c38debdc8c7176de6e (patch)
tree8a9edd007cc910e7fc88372dfd037f4046d8981c /usr.bin/tset
parentd015557a828b59d4dc38f3c77cf86396d9dd6288 (diff)
downloadFreeBSD-src-5999b4103596fc93e77293c38debdc8c7176de6e.zip
FreeBSD-src-5999b4103596fc93e77293c38debdc8c7176de6e.tar.gz
Fix false backspace reporting
Diffstat (limited to 'usr.bin/tset')
-rw-r--r--usr.bin/tset/tset.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c
index 8ff536d..74e12f3 100644
--- a/usr.bin/tset/tset.c
+++ b/usr.bin/tset/tset.c
@@ -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");
OpenPOWER on IntegriCloud