From 3efd5ae38bf5467c3d61c9b3478ca96950104510 Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 9 Dec 2021 03:09:45 +0100 Subject: delay --- src/main/kotlin/moe/nea89/website/KConsole.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea89/website/KConsole.kt') diff --git a/src/main/kotlin/moe/nea89/website/KConsole.kt b/src/main/kotlin/moe/nea89/website/KConsole.kt index 29e2264..6c4f707 100644 --- a/src/main/kotlin/moe/nea89/website/KConsole.kt +++ b/src/main/kotlin/moe/nea89/website/KConsole.kt @@ -52,7 +52,6 @@ class KConsole( fun addLine(line: String) { lines.add(line) - scrollDown() } fun scrollDown() { @@ -61,8 +60,9 @@ class KConsole( fun rerender() { var view = lines.joinToString(separator = "\n") - if (state == ConsoleState.SHELLPROMPT) + if (state == ConsoleState.SHELLPROMPT) { view += "\n${'$'} $input" + } text.innerText = view } -- cgit