diff --git a/src/bin/Terminal.hx b/src/bin/Terminal.hx index 5c7bb6f..9da60ab 100644 --- a/src/bin/Terminal.hx +++ b/src/bin/Terminal.hx @@ -1,5 +1,6 @@ package bin; +import kernel.EndOfLoop; import lua.NativeStringTools; import kernel.binstore.BinStore; import kernel.ps.ProcessHandle; @@ -75,6 +76,15 @@ class Terminal implements Process { })); this.requestRender(); + + if (handle.args.length > 0) { + var arg1 = handle.args[0]; + + this.backlog.push("> " + arg1); + EndOfLoop.endOfLoop(() -> { + this.invokeCommand(arg1); + }); + } } private function stopCurrentPS() {