mirai console shutdown logic

This commit is contained in:
jiahua.liu 2020-02-17 17:04:17 +08:00
parent 9828bbf694
commit 01b05ee93b

View File

@ -227,19 +227,6 @@ object MiraiConsoleTerminalUI : MiraiConsoleUI {
hasStart = true
val defaultTerminalFactory = DefaultTerminalFactory(internalPrinter, System.`in`, Charset.defaultCharset())
val fontSize = 12
defaultTerminalFactory
.setInitialTerminalSize(
TerminalSize(
101, 60
)
)
.setTerminalEmulatorFontConfiguration(
SwingTerminalFontConfiguration.newInstance(
Font("Monospaced", Font.PLAIN, fontSize)
)
)
try {
terminal = defaultTerminalFactory.createTerminal()
terminal.enterPrivateMode()