summaryrefslogtreecommitdiff
path: root/etc/skel
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2009-05-06 22:02:06 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2009-05-06 22:02:06 +0000
commit6c9977ae80907d1946810daa8f90168d4b58eaa9 (patch)
treeea62f458f11083442ec12b5348d666bc1c78a1af /etc/skel
parentc45ef502e5e9d69b72d11c8f55b26cabe5948e7d (diff)
Skip terminal initialization when logging in from an xterm, we
can be fairly sure the terminal is already initialized. Avoids a one second pause on login. Requested and OK deraadt@
Diffstat (limited to 'etc/skel')
-rw-r--r--etc/skel/dot.login8
1 files changed, 6 insertions, 2 deletions
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