I've written a script called by
tcpserver that heavily utilizes
tput and similar commands. These commands need to know how to correctly write to the terminal and rely on the
TERM variable to obtain this information. Right now the
TERM variable is being inherited from the console
tcpserver is launched from and I would like to change this.
My clients are telnet-based terminal programs like
telnet. How can I get these programs to communicate the user's terminal type to the remote server?