diff options
author | ache <ache@FreeBSD.org> | 1994-11-07 20:26:35 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-07 20:26:35 +0000 |
commit | 4d684eab18a4ee4fe1eb967ae82991e2b20a43eb (patch) | |
tree | d6a8044ce2667aac2489aa8c06193b46356561a9 /usr.bin/tset | |
parent | b78cd14f01f62a5e22144088014cd73f25ee8137 (diff) | |
download | FreeBSD-src-4d684eab18a4ee4fe1eb967ae82991e2b20a43eb.zip FreeBSD-src-4d684eab18a4ee4fe1eb967ae82991e2b20a43eb.tar.gz |
Set given term name exactly, not first name from termcap entry.
It helps for rlogin/telnet to another systems without our termcap
Diffstat (limited to 'usr.bin/tset')
-rw-r--r-- | usr.bin/tset/tset.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c index 60bc5fe..8ff536d 100644 --- a/usr.bin/tset/tset.c +++ b/usr.bin/tset/tset.c @@ -209,19 +209,6 @@ main(argc, argv) tcsetattr(STDERR_FILENO, TCSADRAIN, &mode); } - /* Get the terminal name from the entry. */ - p = tcapbuf; - if (p != NULL && *p != ':') { - t = p; - if (p = strpbrk(p, "|:")) { - savech = *p; - *p = '\0'; - if ((ttype = strdup(t)) == NULL) - err("%s", strerror(errno)); - *p = savech; - } - } - if (noset) (void)printf("%s\n", ttype); else { |