Skip to content

Does Pluto supports readline()? #765

Dec 11, 2020 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Hi Armando,

We don't support terminal input and terminal output. These methods have classically been the easiest way to communicate with the user, but we feel that a modern language deserves something better.

In your case, you can ask a yes/no question using:

using PlutoUI
md"""
Click to run the program: $(@bind answer CheckBox())
"""
if answer
...
end

Have a look at the PlutoUI sample notebook (from the Pluto main menu) to learn about all the input methods.

-fons

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@a9lara
Comment options

Answer selected by a9lara
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #765 on December 11, 2020 21:55.