Set given term name exactly, not first name from termcap entry.

It helps for rlogin/telnet to another systems without our termcap
This commit is contained in:
Andrey A. Chernov 1994-11-07 20:26:35 +00:00
parent bc8cb7d0b4
commit 2bf7ffc485
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4244

View File

@ -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 {