File: example.menu

package info (click to toggle)
aterm 1.0.0-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,432 kB
  • ctags: 1,431
  • sloc: ansic: 14,688; sh: 3,391; makefile: 250
file content (95 lines) | stat: -rw-r--r-- 1,603 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
This example illustrates how several menus could be combined together

command = "[read:example]"

	read the file starting at "[menu]" or "[menu:???]"
	and continue until it "[done]"

command = "[read:example;pico]" or "[read:example;shell]"

	read the file starting at "[menu:pico]" or "[menu:shell]",
	respectively and continue until "[done:pico]" or [done:shell]",
	respectively.

#-------------------------------------------------------------------------

[menu:pico]
[clear]
[title:Pico (%n-%v)]

# a menu for the pico editor
# mostly a demonstration, I don't know why anyone would need it

# Prior/Next & Home/End are messed up
<l>^A<r>^E<u>^Y<d>^V

/File/*
{Insert File}{^R}
{Save As}{^O}
{-}
{Suspend}{^Z}
{Exit}{^X}

/Edit/*
{Find}{^W}
{-}
{Del Char}{^D}
{Mark}{^^}
{Kill Line}{^K}
{Paste}{^U}

/Basics/*
{Forward}{^F}
{Backward}{^B}
{-}
{Prev}{^P}
{Next}{^N}
{-}
{Beg-of-Line}{^A}
{End-of-Line}{^E}
{-}
{Prev Page}{^Y}
{Next Page}{^V}

/Buffer/*
{Reformat}{^J}
{Position}{^C}
{Refresh}{^L}
{Spell}{^T}

[read:terminal]

/?/*
{Help}{^G}

[show]
[done:pico]

#-------------------------------------------------------------------------

[menu:shell]
[clear]
[title:shell]
# [pixmap:name]

# not necessarily useful, but an example of using the rxvt menuBar

# assuming we have ksh with Emacs bindings
<u>^P<d>^N<r>^F<l>^B

/Programs/*
{Edit}		${EDITOR:-vi}\r
{Mail}		Mail\r
{News}		slrn\r
{Rxvt-News}	rxvt -e slrn&
{Commander}	mc\r

/Shell/{finger} finger\r
{.name}	invisible label!
/

[read:terminal]
[show]
[done:shell]

#--------------------------------------------------------------------- eof