use process on KernelLog
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package lib;
|
||||
|
||||
import kernel.ps.ProcessManager;
|
||||
import bin.KernelLog;
|
||||
import lib.ui.elements.UIElement;
|
||||
import lib.ui.elements.TextElement;
|
||||
@@ -104,17 +105,20 @@ class HomeContext {
|
||||
|
||||
|
||||
private function addLog(){
|
||||
var newContext = WindowManager.instance.createNewBufferedContext();
|
||||
var pid = ProcessManager.run(new KernelLog(),{
|
||||
|
||||
// Create new terminal
|
||||
var term = new KernelLog();
|
||||
term.invoke(newContext);
|
||||
});
|
||||
|
||||
var contextID = addContextNextWorkspace(newContext);
|
||||
if (contextID == -1) {
|
||||
var lastContextID = -1;
|
||||
|
||||
for ( ctx in WindowManager.instance.getContextByPID(pid)){
|
||||
lastContextID = addContextNextWorkspace(ctx);
|
||||
}
|
||||
|
||||
if (lastContextID == -1) {
|
||||
return;
|
||||
}
|
||||
focusContext(contextID);
|
||||
focusContext(lastContextID);
|
||||
}
|
||||
|
||||
private function render() {
|
||||
|
||||
Reference in New Issue
Block a user