diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-05-06 22:02:06 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-05-06 22:02:06 +0000 |
commit | 6c9977ae80907d1946810daa8f90168d4b58eaa9 (patch) | |
tree | ea62f458f11083442ec12b5348d666bc1c78a1af /etc/root/dot.login | |
parent | c45ef502e5e9d69b72d11c8f55b26cabe5948e7d (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/root/dot.login')
-rw-r--r-- | etc/root/dot.login | 8 |
1 files changed, 6 insertions, 2 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 |