From ab0cf04e155137ee3593eff202db5fbaef8065ee Mon Sep 17 00:00:00 2001 From: "jiahua.liu" Date: Sat, 15 Feb 2020 23:30:09 +0800 Subject: [PATCH] bigger swing frame --- mirai-console/src/main/kotlin/net/mamoe/mirai/MiraiConsoleUI.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mirai-console/src/main/kotlin/net/mamoe/mirai/MiraiConsoleUI.kt b/mirai-console/src/main/kotlin/net/mamoe/mirai/MiraiConsoleUI.kt index 9d8ab7540..219573a3c 100644 --- a/mirai-console/src/main/kotlin/net/mamoe/mirai/MiraiConsoleUI.kt +++ b/mirai-console/src/main/kotlin/net/mamoe/mirai/MiraiConsoleUI.kt @@ -385,6 +385,7 @@ object MiraiConsoleUI { addCommandChar('/') } textGraphics.foregroundColor = TextColor.ANSI.BLUE + 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() {