Please enable JavaScript to view this site.

A-Shell Reference

This opcode, added in A-Shell 5.1.1129 of 31 Oct 08, can be used to reset the main A-Shell menu back to the way it was when A-Shell was first launched:

xcall AUI, AUI_MENU, MNUOP_RST, 0, mnutxt, 0, 0, "", "", mstatus

As with other AUI_MENU commands, mstatus will be set to 0 on success. But on failure, it will return the negative version of the OS error #, which you can translate using MX_ERRNOMSG.

Mnutxt can be "" for the standard menu (aka "MIAMEMENU") or you may select a language specific menus by specifying "MIAMEMENU-xxx" where xxx is the LDF language definition (e.g. "SPA", "ITA", "POR", "FRE", "CDN" etc.) If there is no specific menu for the requested language, the default version (American English) will be used. In this case, the return status will be -2 (indicating that the requested menu was not found).

In the case of ATE, the menu items will be reset to the way they are at the start of an ATE connection.