Merge pull request #188 from eed3si9n/wip/prompt-fix

expose ANSI control sequences
This commit is contained in:
eugene yokota 2018-11-17 22:09:19 -08:00 committed by GitHub
commit 962b891aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -96,6 +96,9 @@ class ConsoleLogger private[ConsoleLogger] (
}
object ConsoleAppender {
private[sbt] final val ScrollUp = "\u001B[S"
private[sbt] final val DeleteLine = "\u001B[2K"
private[sbt] final val CursorLeft1000 = "\u001B[1000D"
/** Hide stack trace altogether. */
val noSuppressedMessage = (_: SuppressedTraceContext) => None
@ -456,9 +459,6 @@ class ConsoleAppender private[ConsoleAppender] (
appendLog(SUCCESS_LABEL_COLOR, Level.SuccessLabel, SUCCESS_MESSAGE_COLOR, message)
}
private final val ScrollUp = "\u001B[S"
private final val DeleteLine = "\u001B[2K"
private final val CursorLeft1000 = "\u001B[1000D"
private def write(msg: String): Unit = {
if (!useFormat || !ansiCodesSupported) {
out.println(EscHelpers.removeEscapeSequences(msg))