Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!rutgers!ames!ucbcad!ucbvax!imagen.UUCP!geof From: geof@imagen.UUCP (Geof Cooper) Newsgroups: comp.protocols.tcp-ip Subject: Telnet CRLF's Message-ID: <8708072223.AA00090@apolling.imagen.uucp> Date: Fri, 7-Aug-87 18:23:48 EDT Article-I.D.: apolling.8708072223.AA00090 Posted: Fri Aug 7 18:23:48 1987 Date-Received: Sun, 9-Aug-87 08:27:41 EDT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: imagen!geof@decwrl.dec.com Distribution: world Organization: The ARPA Internet Lines: 35 The problem is REALLY: How do I get RETURN to work properly both at the command level and in EMACS (or other RAW mode application, like vi, tip, etc....). At the command level (in "cooked tty" applications), the "big key" on the terminal (which is usually RETURN these days) is the one you want to type to end a command. Unix helps tty's to do this by internally mapping the '\r' character into '\n' (newline == linefeed) in the default terminal mode. When you go into a raw-mode application, it usually turns off this translation. Thus, it must "know" what key is the "big one" and let you use it. Emacs wants to see a '\r' to generate its "newline" function. So on Unix itself, it would be better to use CR-NUL and never generate newline, since the system will map CR-NUL into the local newline convention. BUT, in the generic case, you MIGHT be talking (perhaps from a Unix machine) to a machine that isn't Unix, and needs the CR-LF newline sequence. Or you might want the "big key" to generate the <> without having to worry about it. So you DO want to generate newline in your telnet user program. The only resolution of this, in my mind, is for telnet user programs to always provide an OPTION for what mapping to use. After all, how does the telnet program know what the "big key" is, anyway! - Geof Cooper