Browse Source

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@
OPENBSD_4_6
millert 15 years ago
parent
commit
a8eac7c8f8
3 changed files with 18 additions and 6 deletions
  1. +6
    -2
      src/etc/root/dot.login
  2. +6
    -2
      src/etc/root/dot.profile
  3. +6
    -2
      src/etc/skel/dot.login

+ 6
- 2
src/etc/root/dot.login View File

@ -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


+ 6
- 2
src/etc/root/dot.profile View File

@ -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

+ 6
- 2
src/etc/skel/dot.login View File

@ -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


Loading…
Cancel
Save