-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.sh
More file actions
executable file
·144 lines (116 loc) · 3.48 KB
/
main.sh
File metadata and controls
executable file
·144 lines (116 loc) · 3.48 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#!/usr/bin/env bash
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$ROOT"/../core.sh
config headerTitle='Example project'
# Adapt menu size for VHS tape format when recording demo
if [ "${VHS:-0}" = '1' ]; then
width=95%
height=80%
menuHeight=15
else
width='auto'
height='auto'
menuHeight='auto'
fi
menu \
title='Example main menu' \
text='Please, select an option or press ESC to exit' \
width=$width \
height=$height \
menuHeight=$menuHeight \
cancelLabel='Exit' \
prefix='alphanum' \
loop='true'
menuEntry \
title='Example build list' \
summary='Select me to show a build list' \
callback="$ROOT/buildlist.sh"
menuEntry \
title='Example calendar box' \
summary='Select me to show a calendar box' \
callback="$ROOT/calendar.sh"
menuEntry \
title='Example check list' \
summary='Select me to jump to a check list' \
callback="$ROOT/checklist.sh"
menuEntry \
title='Example confirm box' \
summary='Select me to show a confirm box' \
callback="$ROOT/confirm.sh"
menuEntry \
title='Example file edit box' \
summary='Select me to show a file edit box' \
callback="$ROOT/edit.sh"
menuEntry \
title='Example form box' \
summary='Select me to show a form box' \
callback="$ROOT/form.sh"
menuEntry \
title='Example file selector box' \
summary='Select me to show a file selector box' \
callback="$ROOT/selector.sh"
menuEntry \
title='Example info box' \
summary='Select me to show an info box' \
callback="$ROOT/info.sh"
menuEntry \
title='Example input box' \
summary='Select me to show an input box' \
callback="$ROOT/input.sh"
menuEntry \
title='Example input menu box' \
summary='Select me to jump to an input menu' \
callback="$ROOT/inputmenu.sh"
menuEntry \
title='Example menu box' \
summary='Select me to jump to a submenu' \
callback="$ROOT/menu.sh"
menuEntry \
title='Example mixed progress box' \
summary='Select me to start a mixed progress box' \
callback="$ROOT/mixedprogress.sh"
menuEntry \
title='Example password box' \
summary='Select me to show a password box' \
callback="$ROOT/password.sh"
menuEntry \
title='Example pause box' \
summary='Select me to show a pause box' \
callback="$ROOT/pause.sh"
menuEntry \
title='Example program box' \
summary='Select me to start a program box' \
callback="$ROOT/program.sh"
menuEntry \
title='Example progress box' \
summary='Select me to start a progress box' \
callback="$ROOT/progress.sh"
menuEntry \
title='Example radio list' \
summary='Select me to jump to a radio list' \
callback="$ROOT/radiolist.sh"
menuEntry \
title='Example range box' \
summary='Select me to jump to a range box' \
callback="$ROOT/range.sh"
menuEntry \
title='Example text box' \
summary='Select me to show a text box' \
callback="$ROOT/text.sh"
menuEntry \
title='Example text file box' \
summary='Select me to show a text file box' \
callback="$ROOT/text_file.sh"
menuEntry \
title='Example text file follow box' \
summary='Select me to show a text file follow box' \
callback="$ROOT/text_file_follow.sh"
menuEntry \
title='Example time picker box' \
summary='Select me to show a time picker box' \
callback="$ROOT/timepicker.sh"
menuEntry \
title='Example treelist box' \
summary='Select me to show a treelist box' \
callback="$ROOT/treelist.sh"
menuDraw