When running sbt console with Scala 2.12.4, sbt 1.0.3, MacOS 10.13.1, the arrow keys output codes like ^[[A rather than retrieving the last command and tab outputs a tab character rather than autocompete. If I directly run the Scala REPL or run sbt and then from the sbt command line enter console, then these keys operate as expected. So I can work around this issue, it's just annoying. I suspect there is some piece of configuration that I'm missing I just haven't been able to find it yet.
I had the same problem in sbt 1.1.0. A fix in the 1.1.1 release resolved the issue.
Fixes tab completion in console while running in batch mode as sbt console. #3841/#3876 by @eed3si9n
https://github.com/sbt/sbt/releases/tag/v1.1.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With