-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.jl
More file actions
36 lines (30 loc) · 1.03 KB
/
menu.jl
File metadata and controls
36 lines (30 loc) · 1.03 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
using Pkg
Pkg.activate(@__DIR__)
using GLMakie
using VortexStepMethod
using REPL.TerminalMenus
url = "https://opensourceawe.github.io/VortexStepMethod.jl/dev"
options = [
"V3_kite = include(\"V3_kite.jl\")",
"pyramid_model = include(\"pyramid_model.jl\")",
"rectangular_wing = include(\"rectangular_wing.jl\")",
"ram_air_kite = include(\"ram_air_kite.jl\")",
"stall_model = include(\"stall_model.jl\")",
"bench = include(\"bench.jl\")",
"cleanup = include(\"cleanup.jl\")",
"help_me = VortexStepMethod.help(url)",
"quit"]
function example_menu()
active = true
while active
menu = RadioMenu(options, pagesize=8)
choice = request("\nChoose function to execute or `q` to quit: ", menu)
if choice != -1 && choice != length(options)
eval(Meta.parse(options[choice]))
else
println("Left menu. Press <ctrl><d> to quit Julia!")
active = false
end
end
end
example_menu()