#!/usr/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # gos720 src/gos/2d/XTOP/programs/xinit/xstartterm 1.1 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2003 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#)13 1.1 src/gos/2d/XTOP/programs/xinit/xstartterm, xclients, gos720 4/3/03 13:12:25 # Start an X Terminal Emulator. # It is not always possible to be sure what terminal emulator programs # are installed, so this script will try to find the "best" one available. # # Keep in mind that the different terminal emulator programs have some different # command line arguments. # First see if the user has a preference as indicated by the XTERMINALEMULATOR # environment variable. The XTERMINALEMULATOR environment variable should be # set to the fully qualified path of the desired terminal emulator program. # For example: # export XTERMINALEMULATOR="/usr/bin/X11/xterm" if [ -f "$XTERMINALEMULATOR" ] && [ -x "$XTERMINALEMULATOR" ] then exec $XTERMINALEMULATOR $@ fi # If the user has not indicated a valid preference, search the list of known # terminal emulators in the order given, and execute the first one available. for term in "/usr/dt/bin/dtterm" "/usr/bin/X11/aixterm" "/usr/bin/X11/xterm"; do if [ -x $term ] then exec $term $@ fi done