瀏覽代碼

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() {