diff options
author | nea <romangraef@loves.dicksinhisan.us> | 2021-12-09 03:09:45 +0100 |
---|---|---|
committer | nea <romangraef@loves.dicksinhisan.us> | 2021-12-09 03:09:45 +0100 |
commit | 3efd5ae38bf5467c3d61c9b3478ca96950104510 (patch) | |
tree | 2d777afecfc0433ddbf05b8d7421fa5d35ad38fa /src/main/kotlin/moe/nea89/website/KConsole.kt | |
parent | f8c6246a262b1d15e42ce812363f7d4e4eb16b8a (diff) | |
download | neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.tar.gz neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.tar.bz2 neamoe-3efd5ae38bf5467c3d61c9b3478ca96950104510.zip |
delay
Diffstat (limited to 'src/main/kotlin/moe/nea89/website/KConsole.kt')
-rw-r--r-- | src/main/kotlin/moe/nea89/website/KConsole.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |