TERM and TERMTYPE (wizard level question)

The Grand Master asg at sage.cc.purdue.edu
Wed Feb 20 04:37:34 AEST 1991


In article <22295 at hydra.gatech.EDU> gt2807a at 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 



More information about the Comp.unix.internals mailing list