using set term in the .login file

Bruce G. Barnett barnett at vdsvax.steinmetz.ge.com
Wed Oct 12 20:50:32 AEST 1988


In article <1341 at midas.UUCP>, mbennett at midas (Mike Bennett) writes:
>	     tty | grep "ttyd[12]" >/dev/null
>	     if ( $status == 0 ) then
>		set term=vt52
>	     else
>		set term=(term type at school)
>	     endif
>

If you want to automatically set up your terminal, and if you have tset,
then use the information that should be available. There are two
pieces of information that can be used. The baud rate and the terminal type
associated with that port. If the terminal type is wrong, get the 
system mangler to fix it.

Let's assume the terminal type on the prt is 'network', and your baud
rate is 2400 at home, and greater than 2400 at work.

Try this in your .login file:
----------
set noglob
eval `tset -Q -s -m 'network at 2400:?vt52' -m 'network>2400:?vt100' $term`
unset noglob

Also, when you rlogin, the terminal type is correct. Don't change it.
-- 



More information about the Comp.unix.questions mailing list