Debian Codegraph @

help/menus

raw
1 ! $eterna: menus,v 1.9 2021/03/21 04:29:43 mrg Exp $
2 !
3 ! Copyright (c) 1990-2021 Michael Sandrof, Troy Rollo, Matthew Green,
4 ! and other ircII contributors.
5 !
6 ! All rights reserved. See the HELP IRCII COPYRIGHT file for more
7 ! information.
8 !
9 This describes a feature which allows one to create and use
10 menus in any irc session. The menus are totally user
11 configurable and a test menu has been provided at the end
12 of this help file.
13 To use this menu, copy it to your home directory calling it
14 'test', run IRC, and do the following:
15 MLOAD test
16 SET menu Main Menu
17
18 Control-R is bound to ENTER_MENU, and while in the menu
19 you can use vi-like keys or EMACS-like keys to move
20 through the options, and either '.' or SPACE to select
21 an option. The format of the menu file is as follows
22
23 A line beginning with a '#' represents a comment.
24 Blank lines are ignored.
25 A line beginning with the word "MENU" starts a new menu
26 and gives it a name.
27 A line beginning with the word "OPTION" adds a new option
28 to the menu, gives it a name and describes what it does.
29 It's possible to have one menu OPTION lead you into a new menu with
30 OPTION "Sub Menu" COMMAND set menu Sub Menu
31 assuming the Sub Menu has been defined like the following Main Menu.
32
33 The following is a test menu to show how it it can be used.
34
35 # Cut off this line.. and take everything down to the next Cut line ---
36 # Test menu to see how our menu reader works
37
38 MENU Main Menu
39 OPTION "This menu" MENU Main Menu
40 OPTION "List Channels" COMMAND LIST
41 OPTION "Join Channel" COMMAND INPUT "Join Channel: " JOIN $*
42 OPTION "Leave Channel" COMMAND PART *
43 OPTION "Change Name" COMMAND INPUT "New NickName: " NICK $*
44 OPTION "Private Message" COMMAND INPUT "Person to send message to: " INPUT "Text of message: " MSG $* $$*
45 OPTION "Say something" COMMAND INPUT "Say: " SAY $*
46 OPTION "Exit Menu" EXIT
47 OPTION "Exit IRC" COMMAND INPUT "Really quit? " if ( [$0] == [y] ) { QUIT }
48 OPTION "Kill Menu" COMMAND set -menu
49
50 # Cut off this line and take everything up to the previous Cut line ----
51
52 See Also:
53 SET MENU
54 MLOAD