From 4d684eab18a4ee4fe1eb967ae82991e2b20a43eb Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 7 Nov 1994 20:26:35 +0000 Subject: Set given term name exactly, not first name from termcap entry. It helps for rlogin/telnet to another systems without our termcap --- usr.bin/tset/tset.c | 13 ------------- 1 file changed, 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 { -- cgit v1.1