In macOS Mojave's Terminal, the backspace key doesn't function as it should in the Scala 2.12.7 REPL (installed via Homebrew).
This link suggests using scala -Dinput.encoding=iso-8859-1
to start the REPL, however, it doesn't work in this case. I've also tried scala -Dinput.encoding=utf-8
and scala -Dinput.encoding=utf-16
.
Is there any solution?
As a workaround, I've found that using iTerm2 – a better Terminal in many respects – solves this problem completely.