User/Console Input (read, readline, input)

,

How about using a TerminalMenu?

julia> import REPL

julia> using REPL.TerminalMenus

julia> menu = RadioMenu(["Yes", "No"]);

julia> choice = request("Please use up/down arrows to choose an option:", menu);
Please use up/down arrows to choose an option:
 > Yes
   No

julia> choice
1

This is documented here.

1 Like