added terminal args for runnig command on start
This commit is contained in:
parent
64f4304626
commit
e2ab296e79
@ -1,5 +1,6 @@
|
|||||||
package bin;
|
package bin;
|
||||||
|
|
||||||
|
import kernel.EndOfLoop;
|
||||||
import lua.NativeStringTools;
|
import lua.NativeStringTools;
|
||||||
import kernel.binstore.BinStore;
|
import kernel.binstore.BinStore;
|
||||||
import kernel.ps.ProcessHandle;
|
import kernel.ps.ProcessHandle;
|
||||||
@ -75,6 +76,15 @@ class Terminal implements Process {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
this.requestRender();
|
this.requestRender();
|
||||||
|
|
||||||
|
if (handle.args.length > 0) {
|
||||||
|
var arg1 = handle.args[0];
|
||||||
|
|
||||||
|
this.backlog.push("> " + arg1);
|
||||||
|
EndOfLoop.endOfLoop(() -> {
|
||||||
|
this.invokeCommand(arg1);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function stopCurrentPS() {
|
private function stopCurrentPS() {
|
||||||
|
Loading…
Reference in New Issue
Block a user