Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 1999 10:09:51 -0600 (CST)
From:      "Roger P. Johnson" <rpj@fep.hirshfields.com>
To:        freebsd-questions@freebsd.org
Subject:   Help: TERM environment var not being set from /etc/ttys file ...
Message-ID:  <199903261609.KAA14096@fep.hirshfields.com>

next in thread | raw e-mail | index | archive | help

    I have FreeBSD 2.2.6, a Digiboard PC/16e serial board, and when I set the
terminal type in /etc/ttys (see below) for the ports, my TERM environment
variable is not set to what I specify in /etc/ttys. All I get is TERM=unknown.

    Is this broken. It works on my, well, SCO Xenix just fine.

   Thanks,
    Roger.



Here is an example:

    
<just logged in and now at the first system prompt. I print the
value of TERM from my .profile>


TERM=unknown        # from my .profile; 1st line executed as .profile starts up
hirsh@hot2$ tty
/dev/cuaD00
hirsh@hot2$ grep cuaD00 /etc/ttys
cuaD00	"/usr/libexec/getty std.19200"	wyse60 on secure
hirsh@hot2$ echo $TERM
unknown
hirsh@hot2$ uname -a
FreeBSD hot2.hirshfields.com 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Tue Jan 26 10:23:59 CST 1999     roger@hot2.hirshfields.com:/usr/src/sys/compile/HOT2  i386


Here is my .profile:



#	$Id: dot.profile,v 1.2.4.1 1996/06/23 20:35:22 wosch Exp $
#
echo "TERM=$TERM"

umask 0007	# -rw-rw---- && drwxrwx---
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin:/u/hirsh/bin:/u/hirsh/comm/bin:/u/hirsh/comm/fep/bin:~/bin; export PATH

EDITOR=/usr/bin/vi; export EDITOR

# system term type
#TERM=cons25; export TERM

set prompt: ``username@hostname$ '' 
PS1="`whoami`@`hostname | sed 's/\..*//'`"
case `id -u` in
	0) PS1="${PS1}# ";;
 	*) PS1="${PS1}$ ";;
esac


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903261609.KAA14096>