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:
parent
bc8cb7d0b4
commit
2bf7ffc485
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4244
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user