Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!eagle!harpo!seismo!hao!hplabs!sri-unix!cak@Purdue.ARPA From: cak@Purdue.ARPA Newsgroups: net.unix-wizards Subject: Re: more startup time Message-ID: <16145@sri-arpa.UUCP> Date: Mon, 30-Jan-84 10:37:00 EST Article-I.D.: sri-arpa.16145 Posted: Mon Jan 30 10:37:00 1984 Date-Received: Tue, 7-Feb-84 06:13:05 EST Lines: 41 From: Christopher A KentOh my. This is getting out of hand. Here's what I do: switch(`tty`) case '/dev/ttyp*': set saveterm = $TERM echo -n Term = \($TERM\) set term = $< if ( $term == '' ) then set term = $saveterm breaksw endif if ( $term == 'emacs' ) then stty -echo litout set term = 'su' endif setenv TERM $term unsetenv TERMCAP # no tset here, to avoid setting funny modes and delays across # the network, where it would just be annoying. breaksw default: set nonomatch eval `tset -s -Q -m "micom:?regent40" -m "unknown:?regent40" -m "network:?vt132" -m "switcher:?regent40" -m "dialup:?dm2500"` endsw Not only does this contain a hack to handle rlogin, it even has a hack to handle rlogin inside an emacs window. I wish we didn't have to do any of this. Jay Lepreau has submitted a bug fix to Berkeley that causes tset to look in the TERM variable and use that if you're on a terminal that /etc/ttytypesay is "network" -- this way "naive" users don't have to worry about all this crap, things just work the way they are supposed to. As I recall, the fix is a couple of lines. Cheers, Chris "My .login and .cshrc are too big as it is" Kent ----------