
#  X WINDOW SYSTEM STARTUP SCRIPT
#
#  This shell script is used to setup the initial X clients.  It is
#  passed as a parameter to xinit, to be run by xinit along with the 
#  X server.  When this script terminates the X window system will be
#  terminated.

#  Standard output and error output for programs started by this script
#  are redirected to /dev/null (i.e. discarded).  This avoids
#  output to the screen that would mess up the window system display.

exec >/dev/null 2>/dev/null


xterm -geometry =50x26+75+150  -T xterm1 -fn 8x13 &
xterm -geometry =50x26+1+1 -T xterm2 -fn 8x13 &
xterm -geometry =48x32-1+1 -fn 9x15  -T "Test Instructions" -e "Instructions" &

$HOME/bin/mwm &
#  The following "wait" call is done to insure that all terminated
#  child processes are cleaned up (i.e., no <defunct> processes are
#  left around).

wait

#  The XPC xstartr shell script defines a parameter XPC as XPC and then
#  exports it. For XPC, when a [Shift][CTRL][Break] is executed, the
#  sleep is not killed. By checking for WINDOW_TYPE and exiting if it
#  exits, all processes created by XPC will be cleaned up.

if [ $XPC ]
then
   exit
fi

#  All the X clients started by this script have terminated.  Now
#  sleep forever (if this script terminates the window system will
#  be terminated).  When the window system is terminated with
#  [Shift][CTRL][Reset] this script will be killed.

exec sleep 4000000000

#  The window system is terminated when this script is terminated.
