Tset-jv.9 for linux
-------------------

This tset source is based on bsd4.3 net-2 distribution. Someone else
has done most of the porting. Thanks to him/her for that. I did only
some cleanup and fixes.


With tset you can change the termcap entry you are currently using.
This is needed especially when logging in from different kind of
terminals and autodetectionn doesn't work correctly. For example, I
usually use vt100 or con80x60 terminal type, but occasionally I log in
thru a terminal using tvi920 terminal type. Of course I must have a
termcap entry for that in my /etc/termcap file.

Tset can automatically determine and set the correct terminal type
accordingly. And if the terminal type tset determined is not on the
mapping list (given with -m option on the command line) will tset
prompt for setting terminal type properly. For more information, see
the manual page. 

Here is an example from my .login how to use tset:

set noglob
eval `tset -Q -s -m 'vt100:vt100' -m 'screen:vt100' -m 'unknown:?vt100' -m 'network:?vt100' -m 'tvi920:?tvi920'`
unset noglob

And here is a tcsh alias which can be used to change terminal type on
the fly:

alias ts 'set noglob; eval `tset -Q -s ?\!*`; unset noglob; set term=$TERM'


I had to do some fixes to command line argument handling to get tset
work like described in manpage. I also set up simple *.h files and in
some files I changed the order of certain functions to get rid of
declaration warnings during compilation time. No it compiles quite
cleanly and works fine--at least for me.

Before compiling tset check Makefile and change whatever is needed to fit
it for your system. Then say 'make' or make install'. That's it.


Juha Virtanen, email: Juha.Virtanen@hut.fi.
