manager: Fix the character processing logic in the clear command of FlashScreen.

This commit is contained in:
ShirkNeko
2025-06-18 15:52:48 +08:00
parent b537b51034
commit 2ff3b5ee06

View File

@@ -197,7 +197,7 @@ fun FlashScreen(navigator: DestinationsNavigator, flashIt: FlashIt) {
} }
}, onStdout = { }, onStdout = {
tempText = "$it\n" tempText = "$it\n"
if (tempText.startsWith("[H[J")) { // clear command if (tempText.startsWith("")) { // clear command
text = tempText.substring(6) text = tempText.substring(6)
} else { } else {
text += tempText text += tempText