mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-20 18:44:42 +08:00
mirai console shutdown logic
This commit is contained in:
parent
9828bbf694
commit
01b05ee93b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user