#!/bin/csh -f

if ($?WINDOWID) then		# graphic login (console or Tools/Shell)
 
	set TERMINAL="NOTOK"
else				# no graphic login
	set TERMINAL="OK"
endif

if ("$TERMINAL" == "OK") then

	vt200
	setenv BGCMS_BIN $BG_DIR/bgcms/bin
        setenv BG_DTL $BG_DIR/bgcms/bin
	sep -m=1
	vt100
else
	echo
	echo "\tPlease start umc on a VT220 (or higher) terminal\!"
	echo
	exit
endif
