Skip to content

Commit cc23ef4

Browse files
committed
fix function help()
1 parent 4dfdba3 commit cc23ef4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/menu.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
using ControlPlots
22
using VortexStepMethod
33
using REPL.TerminalMenus
4+
using DefaultApplication
45

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

78
function help()
8-
if Sys.iswindows()
9-
run(`cmd /c start $url`)
10-
else
9+
if Sys.islinux()
1110
io = IOBuffer()
1211
run(pipeline(`xdg-open $url`, stderr = io))
1312
# ignore any error messages
1413
out_data = String(take!(io))
14+
else
15+
DefaultApplication.open(url)
1516
end
1617
nothing
1718
end

0 commit comments

Comments
 (0)