#!/bin/sh

# Xterm codes can be found here: 
# https://invisible-island.net/xterm/ctlseqs/ctlseqs.txt
case "$TERM" in
  xterm*|kterm|rxvt*) # Disable X11 XTerm mouse reporting and reset foreground and background colors
	echo '[?1000l[0m';;
esac

# Reset the terminal
/usr/bin/reset

# Reset terminal size
if [ -x /usr/X11R6/bin/resize ]; then
	eval `resize`
fi

