mirror of https://github.com/sbt/sbt.git
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:
parent
536da2f29c
commit
08aa64e703
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue