*BSD News Article 94052


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.uio.no!newsfeed.nacamar.de!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: 21 Apr 1997 10:31:45 GMT
Organization: Awfulhak Ltd.
Lines: 44
Message-ID: <5jffmh$fcu@ui-gate.utell.co.uk>
References: <01bc4a2b$50901400$b69fbf82@dan.sdsu.edu>
    <5j4ba0$sjc$2@easystreet03> <5j56go$8j1@ui-gate.utell.co.uk>
    <sejn2qv6bnl.fsf@diazepam.gnu.ai.mit.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:39439

In article <sejn2qv6bnl.fsf@diazepam.gnu.ai.mit.edu>,
	Joel Ray Holveck <joelh@gnu.ai.mit.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
>>> Edit your .profile file in your home directory and put the
>>> following lines in it:
>>> TERM=vt100
>>> export TERM
>> Eek, no.  Read my other post in this thread.  telnet negotiates the value
>> of your TERM variable according to what the client wants.  The client
>> should be configured with the correct TERM value, not the server.
>> The best you should do in a profile is set TERM *only* if it's not
>> already set.
> 
> But Win95 Telnet doesn't do that.  It doesn't allow you to tell it
> what type of term to emulate.

This is what I expect from Microsoft - they hardcode a TERM=ansi
negotiation.

> I have three suggestions:
> 
> 1) Type 
>   stty rows 25 ; export TERM=vt100
> as the first thing after logging in.
> 
> 2) Add the line
>   case $TERM in ansi) TERM=vt100; stty rows 25;; esac
> to your .profile (or .bashrc).
> 
> 3) Download a better terminal program.  I like CRT myself; check out
> http://www.tucows.com/ for it and others.

Best option.  It's not usually a good idea to hack things so that
broken software can be supported :)

>   Best,
> joelh
> 

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