Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!gateway.dircsa.org.au!cleese.apana.org.au!cleese.apana.org.au!not-for-mail From: newton@cleese.apana.org.au (Mark Newton) Newsgroups: comp.os.386bsd.questions Subject: Re: [Free1.1.5.1]telnet^M Date: 16 Aug 1994 18:54:45 +0930 Organization: cleese.apana.org.au Public Access UNIX +61-8-3736006 Lines: 49 Message-ID: <32q0kt$bul@cleese.apana.org.au> References: <326huj$2mb@rivendell.apana.org.au> NNTP-Posting-Host: cleese.apana.org.au X-Newsreader: TIN [version 1.1 PL8] In article <326huj$2mb@rivendell.apana.org.au>, Phil Homewood (phil@rivendell.apana.org.au) wrote: > I have noticed during a recent upgrade to Free1.1.5.1R (from Net0.9) > that something screwy happens with the "enter" key on console. > Users report similar behaviour on serial ports too. > Problem typically manifests itself whilst using telnet to certain > sites (often if telnetting into a port.) > Problem is: Enter just brings up a ^M, you need to hit ^J > to actually get a NL sent. > Is this a known problem? Or am I just going crazy? It isn't a problem with the enter key. You'll find that the only time you see that problem is when you telnet to a port which doesn't have a server which knows how to do telnet options negotiation. For better or for worse, the out-of-the-box FreeBSD 1.1.5.1R telnet binary has been compiled without the "KLUDGELINEMODE" define, which means that if the server you're connecting to doesn't try to negotiate line mode and edit mode, you'll be stuck with raw mode (which means that your ASCII 13's show up as ^M instead of newlines, and you have to send an explicit newline (^J) to terminate a line. You'll also find that your erase, kill, word-kill, etc characters don't work either). Solutions: Either: 1) Recompile telnet with the KLUDGELINEMODE symbol defined. That'll cause telnet to assume that the other end of the connection wants line mode and edit mode, even if it doesn't (!) or: 2) Escape to the telnet> prompt and type "mode line". Then escape out again and type "mode edit". That'll put you in more or less the same configuration that you'd get with KLUDGELINEMODE As an aside, does anyone know why KLUDGELINEMODE is undefined in the new out-of-the-box config? It confused a lot of my users too (one of them even took his keyboard into a computer shop to get it repaired -- Some Learner Drivers on the Information Superhighway need a little bit more hand-holding than others, methinks). - mark -- -------------------------------------------------------------------- I tried an internal modem, newton@cleese.apana.org.au but it hurt when I walked. Mark Newton ----- Voice: +61-8-3735575 --------------- Data: +61-8-3736006 -----