From 3fd626276dd4375e5ad990bab3273191c8517e0c Mon Sep 17 00:00:00 2001 From: millert <> Date: Fri, 1 May 2009 18:08:43 +0000 Subject: [PATCH] Only have tset prompt for the terminal type if it is "unknown" or not listed in /etc/ttys. OK deraadt@ guenther@ --- src/etc/root/dot.login | 18 +++++++++--------- src/etc/root/dot.profile | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/etc/root/dot.login b/src/etc/root/dot.login index f4fac298..e35a02bd 100644 --- a/src/etc/root/dot.login +++ b/src/etc/root/dot.login @@ -1,15 +1,15 @@ -# $OpenBSD: dot.login,v 1.11 2005/03/30 19:50:07 deraadt Exp $ +# $OpenBSD: dot.login,v 1.12 2009/05/01 18:08:42 millert Exp $ # # csh login file -set tterm='?'$TERM -set noglob -onintr finish -eval `tset -s -Q $tterm` -finish: -unset noglob -unset tterm -onintr +if ( -x /usr/bin/tset ) then + set noglob histchars="" + onintr finish + eval `tset -sQ '-munknown:?vt220' $TERM` + finish: + unset noglob histchars + onintr +endif if ( `logname` == `whoami` ) then echo "Read the afterboot(8) man page for administration advice." diff --git a/src/etc/root/dot.profile b/src/etc/root/dot.profile index d45224f8..a57b1f13 100644 --- a/src/etc/root/dot.profile +++ b/src/etc/root/dot.profile @@ -1,4 +1,4 @@ -# $OpenBSD: dot.profile,v 1.6 2009/04/27 05:02:12 deraadt Exp $ +# $OpenBSD: dot.profile,v 1.7 2009/05/01 18:08:43 millert Exp $ # # sh/ksh initialization @@ -8,6 +8,6 @@ export PATH export HOME umask 022 -if [ x"$TERM" != xxterm -a -x /usr/bin/tset ]; then - eval `/usr/bin/tset -sQ \?$TERM` +if [ -x /usr/bin/tset ]; then + eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM` fi