Read keyboard input in Scala with visible characters entered

I know readInt, and readLinesimilar methods for reading input from the keyboard and can fill in variable data entered by the user. But in REPL nothing is displayed when characters are printed. Is there a setting in REPL to make them visible? Or should I use a different way of reading input from the user?

+5
source share
1 answer

I am surprised that this has not yet been answered. I ran into the same problem again. Try running REPL as follows:

C:\> scala -Xnojline

This should disable JLine and allow you to use the method readLineas you would expect (by displaying the characters you entered when entering them).

+5
source

All Articles