I'm exploring to use Scala REPL bridge to shell.It is mainly achieved by import sys.process._
package and I can use "ls" !
to execute shell.
Now, I want to use "vi" !
to open a interactive vi editor, it is really crazy but very exciting. After entering the cmd in REPL, the terminal opens a init vi canvas. Unfortunately, the terminal is not reading any input from my keyboard.
Is it possible to open a vi in REPL?
from https://stackoverflow.com/a/29972867/1573825 (java solution):
it doesn't even corrupt readline.