Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.unix.aix Subject: Re: Telnet negotiation - Not a defect: a feature! Message-ID: <1990Oct12.171007.14012@ux1.cso.uiuc.edu> Date: 12 Oct 90 17:10:07 GMT References: <1990Oct8.192405.19439@ux1.cso.uiuc.edu> <3814@awdprime.UUCP> <1990Oct11.172158.16069@ux1.cso.uiuc.edu> <9010121513.AA07533@mindcrf.mindcraft.com> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 32 karish@mindcrf.UUCP (Chuck Karish) writes: >UNIX systems maintain information about the terminal type in the >shell, not in the terminal driver. Telnet itself doesn't know >what the terminal type is, and therefore can't do the negotiation. >It's been done this way since telnet was first provided on BSD >systems, as far as I know; AIX behavior does not differ from >historical practice. This is just not true. RFC 1091 is Telnet Terminal-Type negotiation, which IBM claims that AIX implements. When telnetd comes up, it sends an IAC DO TERMINAL-TYPE to the incoming telnet. If the incoming telnet answers appropriately, telnetd gets the text string for the terminal type from the incoming telnet. This should then be put in the TERM environment variable. Unfortunately, IBM has decided that the /bin/login, which executes after telnetd is done, look up the terminal type in /etc/ports and kludge whatever telnetd has set. This makes the implementing RFC 1091 absolutely useless. I know for a fact that Ultrix does telnet terminal-type negotiation. Even when I log in from my Macintosh which runs its own little telnet, whatever I set my terminal type to, whether it's 'vt100' or 'foobar', that's what my TERM variable is set to when I am logged in on the VAX. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD