Information on commands may be found in Chapter 12, C/Base Commands.
For a more involved example of menus, examine the toolkit command, which is a combination of shell commands, menu commands and menus.