4
if [ -z "$GRASS_XTERM" ] ; then
5
# find a working xterm or xterm compatible executable
6
TERM_TRY="xterm rxvt x-terminal-emulator"
7
for TERM_PROG in $TERM_TRY ; do
8
if [ -x "`which $TERM_PROG`" ] ; then
9
GRASS_XTERM="$TERM_PROG"
13
if [ -z "$GRASS_XTERM" ] ; then
14
# no luck, use a default
15
g.message -w "No terminal program found, trying xterm"
21
exec "$GRASS_XTERM" "$@"