# AG\_MENU
> [HTML Version](ag_menu.htm)
_Reviewed and revised December 2023_
**tab(-10, AG\_MENU) opcode, menuid, mnutxt, mstate, mtype, cmd, func, mstatus \{,dlgid\}; chr(127);** [Tab(-10,x) Syntax Notes](ag_xxx_syntax-notes.htm.md)
**tab(-10, AG\_MENU) opcode, mdfspec, mstate, mstatus \{,dlgid\}; chr(127);**
This function has both a [subroutine and a print tab implementation](subroutine-print-pairs.htm.md).
AG\_MENU (21) is the equivalent of the [AUI\_MENU](aui_menu.htm.md)[xs](keyword-types.htm.md) calls. It is used internally for forwarding those functions from A-Shell/Unix to ATE, although it also can be used directly with an application to add or delete menu items. It also may be used to invoke built-in menu commands, using this format:
**tab(-10, AG\_MENU); id; chr(127);**
Where _id_ is the value corresponding to the menu command, from the following list:
| **Symbol** | **Value** | **Description** |
|------|------|------|
| IDM\_ABOUT | 101 | Help..About |
| IDM\_LOAD | 107 | File..Load Settings |
| IDM\_SAVE | 108 | File..Save Settings |
| IDM\_SAVEAS | 109 | File..Save Settings As |
| IDM\_DEFAULTS | 112 | File..Default Settings |
| IDM\_PRINTS | 110 | File..Print Screen |
| IDM\_EXIT | 111 | File..Exit |
| IDM\_AUTOMOUSE | 124 | Edit..AutoMouse |
| IDM\_COPY | 115 | Edit..Copy |
| IDM\_PASTE | 116 | Edit..Paste |
| IDM\_SCHEDULE | 106 | Settings..Scheduling |
| IDM\_BEVELING | 122 | Settings..Beveling |
| IDM\_COLORS | 113 | Settings..Colors |
| IDM\_FONTSYS | 123 | Settings..Font..System |
| IDM\_FONTGUI | 132 | Settings..Font..GUI |
| IDM\_FONTGRID | 144 | Settings..Font..Grid |
| IDM\_MISC | 130 | Settings..Misc Settings |
| IDM\_DLGSIZING | 134 | Settings..Dialog Sizing |
| IDM\_PVPREF | 142 | Settings..Preview Preferences |
| IDM\_KBDLOCK | 117 | Settings..Keyboard Lock |
| IDM\_RESET | 131 | Settings..Reset |
| IDM\_SCROLLBACK | 160 | Settings..Scrollback |
**Response**
none