riju icon indicating copy to clipboard operation
riju copied to clipboard

Scala: prevent program output from trampling on REPL prompt

Open raxod502 opened this issue 3 years ago • 0 comments

Currently, this is what it looks like if you run the example Scala program and then type something into the REPL:

Welcome to Scala 2.11.12 (OpenJDK 64-Bit Server VM, Java 11.0.8).
Type in expressions for evaluation. Or try :help.

scala> Hello, world!
1 + 1
res1: Int = 2

scala> 

Notice that the REPL prompt appears before the program has finished execution, and therefore the console output looks wrong. This should be fixed, if possible.

raxod502 avatar Jun 15 '21 05:06 raxod502