Restore terminal prompt for some dumb terminals

A user reported that no prompt was displayed when they used sbt from the
jEdit console. The reason no prompt was displayed was because
System.console was null which caused the ConsoleChannel to be
initialized with its prompt set to NoPrompt. I don't remember why it was
doing this but this bug seems worse than whatever it was trying to
address.
This commit is contained in:
Ethan Atkins 2020-10-06 08:31:44 -07:00
parent 536da2f29c
commit 08aa64e703
1 changed files with 0 additions and 1 deletions

View File

@ -25,7 +25,6 @@ private[sbt] final class ConsoleChannel(
override val userThread: UserThread = new UserThread(this)
private[sbt] def terminal = Terminal.console
if (System.console == null) terminal.setPrompt(Prompt.NoPrompt)
}
private[sbt] object ConsoleChannel {
private[sbt] def defaultName = "console0"