#!/bin/sh
TTYSERVER="library.mit.edu"
HELP="/mit/library/help"
HFLAGS="" 				# flags for help windows
TFLAGS="-name xterm -geometry 80x25"	# flags for telnet windows
# use special geometry resources if invoked by xlogin
#if ("$1" == "-xlogin") then
#	set HFLAGS = "-geometry +500+350"
#	set TFLAGS = "-geometry 80x25+0+30"
#endif


if [ "$DISPLAY" = "" ]
then
	clear
	cat << EOF
		       OWL

With OWL you can ask a question of an MIT Libraries Reference
Librarian.  The software is very similar to the Athena OLC 
(On-Line Consultant) system.  


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

		[Yy]|[Yy][Ee][Ss])
			`athdir /mit/library`/owl			
			;;

		*)
			;;
	esac

else
	  xterm -name OWL -T 'OWL' $TFLAGS \
	  -e `athdir /mit/library`/owl
fi
exit 0
