summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/root/dot.login8
-rw-r--r--etc/root/dot.profile8
-rw-r--r--etc/skel/dot.login8
3 files changed, 18 insertions, 6 deletions
diff --git a/etc/root/dot.login b/etc/root/dot.login
index e35a02bd3da..74a5d6f3599 100644
--- a/etc/root/dot.login
+++ b/etc/root/dot.login
@@ -1,11 +1,15 @@
-# $OpenBSD: dot.login,v 1.12 2009/05/01 18:08:42 millert Exp $
+# $OpenBSD: dot.login,v 1.13 2009/05/06 22:02:05 millert Exp $
#
# csh login file
if ( -x /usr/bin/tset ) then
set noglob histchars=""
onintr finish
- eval `tset -sQ '-munknown:?vt220' $TERM`
+ if ( $?XTERM_VERSION ) then
+ eval `tset -IsQ '-munknown:?vt220' $TERM`
+ else
+ eval `tset -sQ '-munknown:?vt220' $TERM`
+ endif
finish:
unset noglob histchars
onintr
diff --git a/etc/root/dot.profile b/etc/root/dot.profile
index a57b1f13407..9f9587664a8 100644
--- a/etc/root/dot.profile
+++ b/etc/root/dot.profile
@@ -1,4 +1,4 @@
-# $OpenBSD: dot.profile,v 1.7 2009/05/01 18:08:43 millert Exp $
+# $OpenBSD: dot.profile,v 1.8 2009/05/06 22:02:05 millert Exp $
#
# sh/ksh initialization
@@ -9,5 +9,9 @@ export HOME
umask 022
if [ -x /usr/bin/tset ]; then
- eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM`
+ if [ X"$XTERM_VERSION" = X"" ]; then
+ eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM`
+ else
+ eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM`
+ fi
fi
diff --git a/etc/skel/dot.login b/etc/skel/dot.login
index ff337e8659b..2c2d63970e4 100644
--- a/etc/skel/dot.login
+++ b/etc/skel/dot.login
@@ -1,9 +1,13 @@
-# $OpenBSD: dot.login,v 1.4 2009/01/30 08:42:26 sobrado Exp $
+# $OpenBSD: dot.login,v 1.5 2009/05/06 22:02:05 millert Exp $
#
# csh login file
if ( ! $?TERMCAP ) then
- tset -Q '-mdialup:?vt100' $TERM
+ if ( $?XTERM_VERSION ) then
+ tset -IQ '-munknown:?vt220' $TERM
+ else
+ tset -Q '-munknown:?vt220' $TERM
+ endif
endif
stty newcrt crterase