#!/bin/sh
if [ "$DISPLAY" = "" ]
then

	clear
	cat << EOF
			 Harvard's Hollis Card Catalog

	Press  RETURN  at the  "TS!> vt1200, 3278" prompt to begin.
	Type  "ESC x x"  to quit, or  "F11 x x"  on keyboards with no
	ESC key.

	There are many different levels on Hollis, each with a different
	subset of commands, which can be confusing.  Typing "quit" and
	pressing  RETURN  will get you back up one level.  Note that
	typing "help" and pressing   RETURN  at different levels will get
	you different help.

        "telnet: connect: Connection refused"  means that Hollis
        is busy or unavailable.  Type "quit" and press RETURN  to exit
        from telnet.

EOF
	echo -n "Do you wish to connect to Hollis now? [y/n] "
	read answer 
	case $answer in

		[Yy]|[Yy][Ee][Ss])
			telnet hollis.harvard.edu
			;;

		*)
			;;
	esac

else

	xwud -noclick $HFLAGS -in $HELP/hollishelp.xwd&
	XWUD=$!
	xterm -name telnet -T 'Hollis' $TFLAGS \
	 -e telnet hollis.harvard.edu 
	kill -13 $XWUD

fi

exit 0
