From owner-freebsd-questions Tue Aug 26 08:14:33 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA15885 for questions-outgoing; Tue, 26 Aug 1997 08:14:33 -0700 (PDT) Received: from lincc.lincc.lib.or.us (lincc.lincc.lib.or.us [198.107.142.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA15878 for ; Tue, 26 Aug 1997 08:14:28 -0700 (PDT) Received: from localhost (george@localhost) by lincc.lincc.lib.or.us (8.8.5/8.8.5) with SMTP id IAA02252; Tue, 26 Aug 1997 08:14:24 -0700 (PDT) Date: Tue, 26 Aug 1997 08:14:24 -0700 (PDT) From: George Yobst To: Chris Coleman cc: questions@FreeBSD.ORG Subject: Re: set term = vt100 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 25 Aug 1997, Chris Coleman wrote: *I get the message "you term of type "dialup" does not have the features to *run 'pine'" I know I can type set term = vt100 to make it work. * *But how to I automate it so that I don't have to type it in by hand, short *of putting that line in the .login script * *What I want is the correct way to make it know that types 'ansi' 'dialup' *and 'unknown' are really 'vt100' and if I used a different type of *connection it would recognize it for what it was. * *maybe like: * *if ($term = ansi) * set term = vt100 *endif * *Would that work, I have tried a few ways, but no luck yet. *Let me know what I am missing. Or should I just put "set term = vt100" *in everybody's .login? * Hi Chris, I've put these lines in the /etc/profile (no .), so it runs for bash and sh shells. The last line has been particulary helpful, when a user logs in and can't run pine, I always ask what their terminal type is. - George set noglob tset -sm :$TERM >> /dev/null unset noglob export TERM=$TERM echo "["$TERM"]" ----------------------------------------------------------------------- George Yobst, System Manager email: george@lincc.lib.or.us LINCC phone: 503-655-8550 16239 SE McLoughlin Blvd, Suite 208 fax: 503-655-8555 Oak Grove, OR 97267-4654 webmaster: [www.]lincc.lib.or.us "...it is impossible for anyone to begin to learn what he thinks he already knows." - Epictetus