"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "xiterm-2.0/doc/test/menus/example.menu" of archive xiterm-2.0.tar.gz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 This example illustrates how several menus could be combined together
2
3 command = "[read:example]"
4
5 read the file starting at "[menu]" or "[menu:???]"
6 and continue until it "[done]"
7
8 command = "[read:example;pico]" or "[read:example;shell]"
9
10 read the file starting at "[menu:pico]" or "[menu:shell]",
11 respectively and continue until "[done:pico]" or [done:shell]",
12 respectively.
13
14 #-------------------------------------------------------------------------
15
16 [menu:pico]
17 [clear]
18 [title:Pico (%n-%v)]
19
20 # a menu for the pico editor
21 # mostly a demonstration, I don't know why anyone would need it
22
23 # Prior/Next & Home/End are messed up
24 <l>^A<r>^E<u>^Y<d>^V
25
26 /File/*
27 {Insert File}{^R}
28 {Save As}{^O}
29 {-}
30 {Suspend}{^Z}
31 {Exit}{^X}
32
33 /Edit/*
34 {Find}{^W}
35 {-}
36 {Del Char}{^D}
37 {Mark}{^^}
38 {Kill Line}{^K}
39 {Paste}{^U}
40
41 /Basics/*
42 {Forward}{^F}
43 {Backward}{^B}
44 {-}
45 {Prev}{^P}
46 {Next}{^N}
47 {-}
48 {Beg-of-Line}{^A}
49 {End-of-Line}{^E}
50 {-}
51 {Prev Page}{^Y}
52 {Next Page}{^V}
53
54 /Buffer/*
55 {Reformat}{^J}
56 {Position}{^C}
57 {Refresh}{^L}
58 {Spell}{^T}
59
60 [read:terminal]
61
62 /?/*
63 {Help}{^G}
64
65 [show]
66 [done:pico]
67
68 #-------------------------------------------------------------------------
69
70 [menu:shell]
71 [clear]
72 [title:shell]
73 # [pixmap:name]
74
75 # not necessarily useful, but an example of using the rxvt menuBar
76
77 # assuming we have ksh with Emacs bindings
78 <u>^P<d>^N<r>^F<l>^B
79
80 /Programs/*
81 {Edit} ${EDITOR:-vi}\r
82 {Mail} Mail\r
83 {News} slrn\r
84 {Rxvt-News} rxvt -e slrn&
85 {Commander} mc\r
86
87 /Shell/{finger} finger\r
88 {.name} invisible label!
89 /
90
91 [read:terminal]
92 [show]
93 [done:shell]
94
95 #--------------------------------------------------------------------- eof