[comp.unix.internals] TERM and TERMTYPE

asg@sage.cc.purdue.edu (The Grand Master) (02/20/91)

In article <22295@hydra.gatech.EDU> gt2807a@prism.gatech.EDU (Benjamin H. Cowan) writes:
>
>  I'd like to be able to set my PATH to different paths depending on the
>machine type I log into.  Is there a TERMTYPE shell variable?  If not,
>how might one go about figuring out which path to set depending on the
>machine type?  There are several programs compiled differently to run on
>different types of machines and I would like to be able to put the correct
>directories where the correct programs according to my machine type could 
>be found in my PATH.
>
Yes, there is a variable called TERM - you could do something like

if [ $TERM = unknown ]
  then
     TERM=`tset - -m unknown:?vt100`
fi
case $TERM in
           z29) PATH=z29_path          
                ;;
         vt100) PATH=vt100_path          
                ;;
         vt102) PATH=vt102_path          
                ;;
        wyse50) PATH=wyse50_path
                ;;
             *) PATH=default_path
                ;;
esac

 That should work fine
			The Grand Master
			Bruce Varney