mirror of https://github.com/sbt/sbt.git
changes needed for tests for jline 2.10
This commit is contained in:
parent
cb9266d05a
commit
829d6b7513
|
|
@ -18,9 +18,10 @@ object JLineTest
|
||||||
val parsers = Map("1" -> one, "2" -> two, "3" -> three, "4" -> four, "5" -> five)
|
val parsers = Map("1" -> one, "2" -> two, "3" -> three, "4" -> four, "5" -> five)
|
||||||
def main(args: Array[String])
|
def main(args: Array[String])
|
||||||
{
|
{
|
||||||
import jline.{ConsoleReader,Terminal}
|
import jline.TerminalFactory
|
||||||
|
import jline.console.ConsoleReader
|
||||||
val reader = new ConsoleReader()
|
val reader = new ConsoleReader()
|
||||||
Terminal.getTerminal.disableEcho()
|
TerminalFactory.get.setEchoEnabled(false)
|
||||||
|
|
||||||
val parser = parsers(args(0))
|
val parser = parsers(args(0))
|
||||||
JLineCompletion.installCustomCompletor(reader, parser)
|
JLineCompletion.installCustomCompletor(reader, parser)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue