diff options
author | echo <91651232+exhq@users.noreply.github.com> | 2022-08-28 19:06:37 +0430 |
---|---|---|
committer | echo <91651232+exhq@users.noreply.github.com> | 2022-08-28 19:06:37 +0430 |
commit | 98078e3f443b21877e443dfce44f71e649ce131c (patch) | |
tree | 4b7599df9b710e964346bec47df16ce2ff5eb5ca | |
parent | 75a6001c6e061607d6686313e3a1e4e580a314c9 (diff) | |
download | exhq.github.io-98078e3f443b21877e443dfce44f71e649ce131c.tar.gz exhq.github.io-98078e3f443b21877e443dfce44f71e649ce131c.tar.bz2 exhq.github.io-98078e3f443b21877e443dfce44f71e649ce131c.zip |
holy fucking shit double magic
-rw-r--r-- | console/src/jsMain/kotlin/main.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/console/src/jsMain/kotlin/main.kt b/console/src/jsMain/kotlin/main.kt index 45bdead..6e133bb 100644 --- a/console/src/jsMain/kotlin/main.kt +++ b/console/src/jsMain/kotlin/main.kt @@ -23,7 +23,7 @@ val defaultFileSystem = fileSystem { } fun main() { - + var startupmsg = "type help to get a list of commands" val root = document.body!!.append.div() val console = KConsole.createFor(root, fileSystem = defaultFileSystem) injectGlobal { @@ -37,11 +37,12 @@ fun main() { } } - console.addLine("Starting stfff") console.PS1 = { "${console.fileAccessor!!.currentDir.joinToString("/", "/")} > " } if (window.location.hash == "#mobile" || (window.location.hash != "#desktop" && js("'ontouchstart' in document.documentElement") as Boolean)) { console.openMobileKeyboardOnTap() + startupmsg = "nea added phone support, kindaaa. phone is shit anyways \ntype help for a list of commands" } + console.addMultilineText(startupmsg) console.fileAccessor!!.cd("/home/exhq") console.rerender() console.registerCommand(defaultLsCommand("ls", delayBetweenLines = 0.milliseconds)) |