diff options
author | echo <91651232+exhq@users.noreply.github.com> | 2022-10-12 13:53:58 +0330 |
---|---|---|
committer | echo <91651232+exhq@users.noreply.github.com> | 2022-10-12 13:53:58 +0330 |
commit | 17f03f850e49b36e59f7381680e31fdc5fc45ed1 (patch) | |
tree | 58b292683244f1eb4b3c942e9fcea333a7e88824 /src/jsMain/kotlin/moe/nea89/website/KConsole.kt | |
parent | 3bb7bb0fe2d728dd862a21b3dbb916e19951dbc8 (diff) | |
download | neamoe-17f03f850e49b36e59f7381680e31fdc5fc45ed1.tar.gz neamoe-17f03f850e49b36e59f7381680e31fdc5fc45ed1.tar.bz2 neamoe-17f03f850e49b36e59f7381680e31fdc5fc45ed1.zip |
when
Diffstat (limited to 'src/jsMain/kotlin/moe/nea89/website/KConsole.kt')
-rw-r--r-- | src/jsMain/kotlin/moe/nea89/website/KConsole.kt | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/jsMain/kotlin/moe/nea89/website/KConsole.kt b/src/jsMain/kotlin/moe/nea89/website/KConsole.kt index c5850fc..9b073a2 100644 --- a/src/jsMain/kotlin/moe/nea89/website/KConsole.kt +++ b/src/jsMain/kotlin/moe/nea89/website/KConsole.kt @@ -31,7 +31,6 @@ class KConsole( private lateinit var uninjectKeyHandler: () -> Unit val fileAccessor = fileSystem?.let { FileAccessor(it) } - var wholecommand = "" var currenthistory = 0 var commandHistory : Array<String> = emptyArray() var PS1: KConsole.() -> String = { "$" } @@ -145,13 +144,9 @@ class KConsole( return } val command = parts[0] - wholecommand = "" println("whole command:") - for (element in parts){ - wholecommand += element + " " - } - println(wholecommand) - commandHistory += wholecommand + println(commandLine) + commandHistory += commandLine val arguments = parts.drop(1) val commandThing = commands[command] |