Control-R is bound to ENTER_MENU, and while in the menu you can use vi-like keys or EMACS-like keys to move through the options, and either '.' or SPACE to select an option. The format of the menu file is as follows
A line beginning with a '#' represents a comment. Blank lines are ignored. A line beginning with the word "MENU" starts a new menu and gives it a name. A line beginning with the word "OPTION" adds a new option to the menu, gives it a name and describes what it does. It's possible to have one menu OPTION lead you into a new menu with OPTION "Sub Menu" COMMAND set menu Sub Menu assuming the Sub Menu has been defined like the following Main Menu.
The following is a test menu to show how it it can be used.
# Cut off this line.. and take everything down to the next Cut line --- # Test menu to see how our menu reader works
MENU Main Menu
OPTION "This menu" MENU Main Menu OPTION "List Channels" COMMAND LIST OPTION "Join Channel" COMMAND INPUT "Join Channel: " JOIN $* OPTION "Leave Channel" COMMAND PART * OPTION "Change Name" COMMAND INPUT "New NickName: " NICK $* OPTION "Private Message" COMMAND INPUT "Person to send message to: " INPUT "Text of message: " MSG $* $$* OPTION "Say something" COMMAND INPUT "Say: " SAY $* OPTION "Exit Menu" EXIT OPTION "Exit IRC" COMMAND INPUT "Really quit? " if ( [$0] == [y] ) { QUIT } OPTION "Kill Menu" COMMAND set -menu
# Cut off this line and take everything up to the previous Cut line ----