From owner-freebsd-questions Fri Mar 26 8:39:12 1999 Delivered-To: freebsd-questions@freebsd.org Received: from abby.skypoint.net (abby.skypoint.net [199.86.32.252]) by hub.freebsd.org (Postfix) with ESMTP id F30D315528 for ; Fri, 26 Mar 1999 08:39:08 -0800 (PST) (envelope-from rpj@fep.hirshfields.com) Received: (from uucp@localhost) by abby.skypoint.net (8.8.7/jl 1.3) with UUCP id KAA27959 for freebsd-questions@freebsd.org; Fri, 26 Mar 1999 10:38:49 -0600 (CST) Received: (from rpj@localhost) by fep.hirshfields.com (8.8.8/8.8.8) id KAA14096 for freebsd-questions@freebsd.org; Fri, 26 Mar 1999 10:09:52 -0600 (CST) (envelope-from rpj) From: "Roger P. Johnson" Message-Id: <199903261609.KAA14096@fep.hirshfields.com> Subject: Help: TERM environment var not being set from /etc/ttys file ... To: freebsd-questions@freebsd.org Date: Fri, 26 Mar 1999 10:09:51 -0600 (CST) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: 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