Displays a list of programs and lets the user launch one.
menu [program list]
This program displays a list of programs on the screen, lets the user pick one, and runs it. After the selected program completes, the list of programs is displayed again and the user can make another selection.
When the list is on screen, the user can press the up and down arrows on the control pad to change the selected program, press A to select a program to run, and presses Stop to exit.
During startup, this program reads a file which defines the list of programs to display on screen. Every line in this file defines a program, using the following format:
[“] label [”] cmd-line
Within the program list, empty lines are ignored. A semicolon indicates the start of a comment. Any text following a semicolon is ignored until the end of the line. Linefeed or a carriage return indicate the end of a line.
menu.c, gfxutils.h, gfxutils.c, programlist.h, programlist.c
examples/Miscellaneous/menu