julia> wait_for_key(prompt) = (print(stdout, prompt); read(stdin, 1); nothing)
wait_for_key (generic function with 1 method)
julia> wait_for_key("press any key to continue")
press any key to continue
2 Likes