Преглед на файлове

Merge remote-tracking branch 'origin/master'

Him188 преди 6 години
родител
ревизия
60a4ab3631
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      mirai-console/src/main/kotlin/net/mamoe/mirai/MiraiConsoleUI.kt

+ 3 - 1
mirai-console/src/main/kotlin/net/mamoe/mirai/MiraiConsoleUI.kt

@@ -384,7 +384,8 @@ object MiraiConsoleUI {
         if (commandBuilder.isEmpty() && c != '/') {
             addCommandChar('/')
         }
-        textGraphics.foregroundColor = TextColor.ANSI.BLUE
+        textGraphics.foregroundColor = TextColor.ANSI.WHITE
+        textGraphics.backgroundColor = TextColor.ANSI.BLACK
         val height = terminal.terminalSize.rows
         commandBuilder.append(c)
         if (terminal is SwingTerminalFrame) {
@@ -392,6 +393,7 @@ object MiraiConsoleUI {
         } else {
             textGraphics.putString(6 + commandBuilder.length, height - 3, c.toString())
         }
+        textGraphics.backgroundColor = TextColor.ANSI.DEFAULT
     }
 
     private fun deleteCommandChar() {