A2osX/EXAMPLES/FMENU.txt

26 lines
617 B
Plaintext
Raw Normal View History

NEW
PREFIX
AUTO 4,1
MAN
#!/BIN/SH
#
# This script defines a Menu Function that can be used
# in multiple scripts.
#
# Load this function by calling . FMENU
#
# Call the Function with CALL A2MENU RVar NumMI T1 M1 M2 M3 M4 M5 M6 M7 M8 M9
# where RVar is the name of the variable you want the menu choice placed into
# NumMI is the Number of Menu Items you want to display (max 9)
# T1 is the menu Title
# M1 ... M9 are the available menu choices
#
FUNCTION A2MENU
{
# Start of A2MENU Code
ECHO "\f
}
# End of FMENU
TEXT /MAKE/USR/SHARE/EXAMPLES/FMENU