
: TNIX/UNIX version - 06FEB1984
:	Keyshell Version Number 1	*/

: show - version 1 - 8SEP83

: Show is a shell procedure which is called by setksh.
: It prints information about the current ColorKey+ configuration and
: prints the names of any saved configurations.
: If no current configuration is found, it prints the values of
: the variables TEKPATH, ICOMPORT, ICOMSPEED and uP.

if test -f $HOME/.setKSH	
then
		if test -f $HOME/.ksh/kshconfig
		then
			cat $HOME/.ksh/kshconfig
			if test "$TNIX" = "yes" ; then
				if test $IU ; then
					echo "The Integration Unit is on HSI I/O port $IU."
				fi
			else
				if test $ICOMPORT
				then echo "The Integration Unit is on $ICOMPORT"
				fi
			fi
		elif
			test -f $TEKPATH/tek/ksh/deflt/kshconfig
		then
			cat $TEKPATH/tek/ksh/deflt/kshconfig
		else
			echo "Can't print the current ColorKey+ configuration"
		fi
	
else
	echo
	echo "ColorKey+ is currently not configured."

fi


if test -d $HOME/.saveksh	
then
	echo
	echo "Saved ColorKey+ Configurations:"
	echo
	ls -1 $HOME/.saveksh
fi
	
	
echo
echo -n "Press [RETURN] to continue"
read INPUT

