Backspace key doesn't work in Scala REPL on macOS

435 Views Asked by At

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?

1

There are 1 best solutions below

1
On

As a workaround, I've found that using iTerm2 – a better Terminal in many respects – solves this problem completely.