aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorecho <91651232+exhq@users.noreply.github.com>2022-08-28 19:06:37 +0430
committerecho <91651232+exhq@users.noreply.github.com>2022-08-28 19:06:37 +0430
commit98078e3f443b21877e443dfce44f71e649ce131c (patch)
tree4b7599df9b710e964346bec47df16ce2ff5eb5ca
parent75a6001c6e061607d6686313e3a1e4e580a314c9 (diff)
downloadexhq.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.kt5
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))