next up previous contents index
Next: Symbols Up: The Assorted_2 commands Previous: The Assorted_2 commands

Menu_control

 

Menu [major_menu_name or text] [on/off] [colour]

Control what menus are displayed and therefore visible to the user on the display. If the text is a major menu, all commands for that menu are put onto the screen. To add the Lego commands to the screen, for example, just do

O > menu lego ;;

To add a macro called map, do

O > menu @map ;

The new commands are added to the bottom of the menu. A list of available major menus can be obtained by typing

O > menu ?

The screen menu is maintained in a datablock called .menu and can be   changed in other ways. For example, its contents can be converted in a formatted file with Write_formatted, edited with your favourite   editor (remembering to correctly update the number of lines), and then added back into the database with Read_formatted command.  

There are two datablocks associated with the control and positioning of the menu: