### This file, named '.login', contains commands that are executed at login
### time, right after execution of the commands in the file '.cshrc'.

#	dec		- Digital Equipment decisions on control character use
#	new		- Use new tty driver
#	-tostop		- Output from background jobs to the terminal allowed

stty dec new -tostop

# Make sun the default terminal type. If the '?' is removed, no question
# is asked.

if ( `tty` =~ /dev/tty[pqr]? && "$TERM" != "annex" ) then
	# Remote login; terminal type already known
	set noglob; eval `tset -s -Q $TERM`; unset noglob
else if (`tty` == /dev/console )then
	# Normal login from console
	set noglob; eval `tset -s -Q -m :sun`; unset noglob
else
	# Normal login from terminal
	set noglob; eval `tset -s -Q -m :?twist`; unset noglob
endif

# ENVIRONMENTAL VARIABLES ARE DEFINED (these may be used by certain commands)
#	TERMCAP		- Where to look for capabilities of your terminal type
#	EDITOR		- Your default editor
#	RNINIT		- Some default options to the program 'rn':
#			  Subjects rather than article numbers, be Verbose, and
#			  save articles in Mail format.
#	ESHELL		- Make emacs use /bin/csh.
#	M2PATH		- Where to look for Modula libraries.
#	FLOAT_OPTION	- Compile for floating point processor

setenv TERMCAP /etc/termcap
setenv EDITOR /usr/local/bin/mg
setenv ESHELL "/bin/csh"
setenv M2PATH ".:/usr/local/lib/modula2:/usr/lib/modula2"
setenv FLOAT_OPTION f68881
setenv HOST `hostname`
setenv MANPATH /usr/local/X11R6/man:/usr/local/gnu/man:/usr/local/man:/usr/man

limit coredumpsize 0	# No core dumps shall be done in case of errors
mesg y			# Other users are allowed to write to the terminal
#echo
#echo "                             --- Yihaaa! ---"
#echo
stty dec new cr0
