#!/bin/sh

# Test to see if you we are logged in at the console.
if tty|egrep -q "tty[0-9]|tty[0-9][0-9]|console" ; then 
	type=svgalib
# Test to see if we are in X.
elif [ $DISPLAY ]; then 
	type=x11
else
	type=curses
fi

exec atari800.$type $@
