mirror of
https://github.com/A2osX/A2osX.git
synced 2024-06-01 22:41:29 +00:00
26 lines
617 B
Plaintext
26 lines
617 B
Plaintext
|
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
|