wb8foz@mthvax.cs.miami.edu (David Lesher) (11/25/89)
I want to set TERM by sensing the baud rate of the port. I'm not having much luck. {.login} #if ($TERM == dialup) then #tset -s -Q -m 'dialup:?vt100'>.trmfil #source .trmfil #rm -f .trmfil endif stty new crt -tabs erase "^H" set term=$TERM setenv TERM `tset -m 'dialup>2400:vt100' -m 'dialup<=2400:tvi950'` The lines commented out were provided by the systems people to a new account. I'm not sure why they used such a roundabout method. I built the setenv TERM .... line after I RTFMed the tset man entry. Alas here is what csh -vx says: setenv TERM `tset -m 'dialup>2400:vt100' -m 'dialup<=2400:tvi950'` setenv TERM `tset -m 'dialup>2400:vt100' -m 'dialup<=2400:tvi950'` tset -m dialup>2400:vt100 -m dialup<=2400:tvi950 endif endif stty new crt -tabs erase "^H" stty new crt -tabs erase ^H stty: : Not a typewriter set term=$TERM set term= Please mail me any bright ideas. I am on my way out of town, and much news will expire before I return. If enlightening, post also. {/etc/ttys-reader's digest condensed version} # "@(#)ttys 1.6 (ULTRIX) 9/26/86" # # name getty type status comments # console "/etc/getty e" dw3 on secure # console Decwriter III ttyd2 "/etc/getty d2.vt200" dialup on secure # direct connect vt220 ttyB0 "/etc/getty std.9600" dialup on secure modem # dialup {} ttyA4 "/etc/getty std.9600" dialup on secure modem # dialup ttyA5 "/etc/getty std.4800" dialup off # printer ttyA6 "/etc/getty std.1200" dialup off modem # outgoing ttyA7 "/etc/getty std.9600" dialup off # test printer ttyA8 "/etc/getty std.9600" dialup on secure modem # dialup {} ttyAf "/etc/getty std.9600" dialup on secure modem # dialup ttyp0 none network {} ttyp3 none network ttyp4 none network -- A host is a host & from coast to coast...wb8foz@mthvax.cs.miami.edu no one will talk to a host that's close..............(305) 255-RTFM Unless the host (that isn't close)......................pob 570-335 is busy, hung or dead....................................33257-0335