You can use the consoleLib.hideMenuItem() system function to hide a specified menu item so that the user cannot select it. By default, all menu items are shown. The hidden menu item is not activated by keystrokes. To reverse the effect of this function, use consoleLib.showMenuItem() (see showMenuItem()).
consoleLib.hideMenuItem(item MenuItem in)