Prints the menu on the screen and waits for an
enter or escape key press. Navigation through the menu is with the up
and down keys. The hightlight bar will wrap when the top or bottom of
the menu is reached.
Rx: A register containing the menu id or -1 if the escape key was pressed.
name: The menu name used in cmenu:.