aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tset
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-05-14 22:46:15 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-05-14 22:46:15 +0000
commit8868bb111b1d3a3ca592f44f89377aa9c405bcbf (patch)
tree8a9edd007cc910e7fc88372dfd037f4046d8981c /usr.bin/tset
parentd9f3f4f9bb7f2ba1aae382638f74966e84728a03 (diff)
Notes
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 8ff536d7ee074..74e12f32d904e 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");