Skip to content

Commit 9a1e7c1

Browse files
committed
use default browser to open
1 parent 016b093 commit 9a1e7c1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/menu.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ using REPL.TerminalMenus
44

55
url = "https://albatross-kite-transport.github.io/VortexStepMethod.jl/dev"
66

7+
help_command = if Sys.iswindows()
8+
"run(`cmd /c start $url`)"
9+
else
10+
"run(`xdg-open $url`)"
11+
end
12+
713
options = ["rectangular_wing = include(\"rectangular_wing.jl\")",
814
"ram_air_kite = include(\"ram_air_kite.jl\")",
915
"stall_model = include(\"stall_model.jl\")",
1016
"bench = include(\"bench.jl\")",
1117
"cleanup = include(\"cleanup.jl\")",
12-
"help = run(`firefox $url`)",
18+
"help = $help_command",
1319
"quit"]
1420

1521
function example_menu()

0 commit comments

Comments
 (0)