#!/bin/sh 
# %Z%$RCSfile: MENU_PRINT,v $ version $Revision: #39 $ created $Date: 2001/08/30 $
# %Z%%Q%

PICKED_ONE=F
CONTINUE=T

while [ "$CONTINUE" = "T" ]
do
    # Source file with S-Plus Default Environment variables
    . $SHOME/splus/lib/install/USER.env

    # Run menu for setting print command defaults.
    cat << EOF

Setting Print Defaults Menu:		Current Value:

1:	Set Print Orientation		"$ORIENT"
2:	Set Print Method		"$METHOD"
3:	Set PostScript Print Command	"$POSTSCRIPT"
4:	Set HP LaserJet Print Command	"$LASERJET"
5:	Set HP LaserJet Resolution	"$DPI"
6:	About This Menu
0:	Return to Previous Menu 

EOF
echo-n "Enter the number of your choice: "
    read WHICH
    case $WHICH in
    0)	CONTINUE=F;;
    1)	SET_VARS ORIENTATION
    	PICKED_ONE=T;;
    2)	SET_VARS METHOD
    	PICKED_ONE=T;;
    3)	SET_VARS POSTSCRIPT
    	PICKED_ONE=T;;
    4)	SET_VARS LASERJET
    	PICKED_ONE=T;;
    5)	SET_VARS DPI
    	PICKED_ONE=T;;
    6)	INTROS PRINT;;
    *)	echo "You must enter a number between 0 and 6." ;;
    esac
done
if [ "$PICKED_ONE" = T ]
then
	cat << EOF




WARNING:  You must reinstall the S-PLUS installation files to insert
the changes you just made.  To do this, run the INSTALL shell script
after exiting CONFIGURE.

EOF

fi
exit 0
