To process the top-level menu and pass control to the user, you simply call a function, mn_proc(). All menu levels are processed automatically, including calling of the action functions associated with each menu field.
The operations performed by mn_proc() can be divided into three phases:
Initialization and Display of the Menu Form
Selection of Menu Fields by the User