aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-11-07 20:26:35 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-11-07 20:26:35 +0000
commit2bf7ffc485ff7a75dd023b6fb218bcf3a2a2ea7d (patch)
treed6a8044ce2667aac2489aa8c06193b46356561a9
parentbc8cb7d0b46b7cba7163df1649d0c9adea914c5a (diff)
downloadsrc-2bf7ffc485ff7a75dd023b6fb218bcf3a2a2ea7d.tar.gz
src-2bf7ffc485ff7a75dd023b6fb218bcf3a2a2ea7d.zip
Set given term name exactly, not first name from termcap entry.
It helps for rlogin/telnet to another systems without our termcap
Notes
Notes: svn path=/head/; revision=4244
-rw-r--r--usr.bin/tset/tset.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/usr.bin/tset/tset.c b/usr.bin/tset/tset.c
index 60bc5fe0b43c..8ff536d7ee07 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 {