*BSD News Article 93664


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!super.zippo.com!zdc!su-news-hub1.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Problem with Telnet
Date: 16 Apr 1997 09:38:18 GMT
Organization: Awfulhak Ltd.
Lines: 40
Message-ID: <5j26ma$4sb@ui-gate.utell.co.uk>
References: <01bc4a2b$50901400$b69fbf82@dan.sdsu.edu>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39151

In article <01bc4a2b$50901400$b69fbf82@dan.sdsu.edu>,
	"Joe" <masc0803@rohan.sdsu.edu> writes:
> I was wondering if someone could help me solve this problem I just recently
> started having with my FreeBSD box.  When I use my win95 box to log into my
> FreeBSD box via Telnet, everything seems to work right as far as logging in
> .  When trying to bring up the email program, Pine, I get the following
> error "Your terminal, of type "ansi", is lacking functions needed to run
> pine."  This problem just recently happen and I'm not sure what caused it. 
> In addition to this problem, I am unable to use the arrow keys in the
> editors, it give me things like this "[B[B."  I think it might have
> something to do with terminal mode, but I'm not sure.  When telneting to
> other machine, the pine program seems to work fine.  There is one
> difference that I noticed between the two machines.  When using Telnet with
> my machine, the FreeBSD box, it recognizes my terminal mode as being ansi. 
> When using the other machine, the one that pine works on, it recognizes my
> terminal mode as being vt100.  If someone could help me fix this problem or
> at least point me in the right direction, I would really appreciate it.

The way it's "supposed" to work is that your machine supplies a value
for TERM to the unix box using the telnet protocol.  If you've got
different values on different host machines, it means that one of the
hosts is manually setting TERM in a profile somewhere.

Change this setting (for bourne shells) from

TERM=xxx

to

TERM=${TERM:-xxx}

This means that TERM will only be set if it isn't already set.

> Thanks
> Dan

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !