# Source'd by .cshrc to reset terminal characteristics
# assumes $TERM is defined 

if ( "x$TERM" =~ xety* ) then
  set noglob
  eval `tset -s -I -Q -m 'lat:vt100' -m 'dialup:vt100' $TERM`
  unset noglob
  # stty dec new cr0 start u stop u pass8
  if ( "x$OPSYS" != "xuws" ) winit
else if ( "x$TERM" == "xts" || "x$TERM" == "xtypescript" ) then
  stty cols 1000
  # stty new dec nl cr0 start u stop u pass8
  set noglob
  eval `tset -s -I -Q -m 'lat:vt100' -m 'dialup:vt100' $TERM`
  unset noglob
else
  set noglob
  eval `tset -s -I -Q -m 'lat:vt100' -m 'dialup:vt100' $TERM`
  unset noglob
  # stty new nl dec cr0 start u stop u pass8
  tset
endif
