#!/bin/sh
if [ "$DISPLAY" = "" ]
then
	clear
	cat $HELP/bartonhelp.text.tty | more
	echo "Do you wish to connect to Barton now? [y/n] "
	read answer 
	  case $answer in
		[Yy]|[Yy][Ee][Ss])
			$BIN/telnetbarton
			;;
		*)
			;;
	  esac
else

	/afs/athena.mit.edu/astaff/project/dash/@sys/console -appdefs $APPDEFS/console.appdefs \
		-map -unmap 0 -notimestamp -nostdin -geometry 503x300 \
		-title Help -titlebar Help -label Help -noautoscroll\
		-hideproc "delete()" -hidelabel "Quit" \
		-file $HELP/bartonhelp.text.x &
	CJOB=$!
	(XENVIRONMENT=$APPDEFS/barton.xresources ;  \
	  export XENVIRONMENT ; \
	  xterm -name telnet -T 'Barton' -geometry 80x25 \
	  -e $BIN/telnetbarton.test )
	kill -TERM $CJOB

fi

exit 0
