added terminal args for runnig command on start

This commit is contained in:
Niklas Kapelle 2024-01-29 00:10:21 +01:00
parent 64f4304626
commit e2ab296e79
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -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() {