start using tinker
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package kernel;
|
||||
|
||||
import util.Debug;
|
||||
import kernel.ui.WindowContext;
|
||||
import kernel.ui.WindowManager;
|
||||
import lib.TermWriteable;
|
||||
@@ -10,8 +9,14 @@ import lib.TermIO;
|
||||
Log messages to specified output.
|
||||
**/
|
||||
class Log {
|
||||
private static final context:WindowContext = WindowManager.instance.createNewContext();
|
||||
private static var writer:TermIO = new TermIO(context);
|
||||
private static var context:WindowContext;
|
||||
private static var writer:TermIO;
|
||||
|
||||
@:allow(kernel.Init)
|
||||
private static function init() {
|
||||
Log.context = WindowManager.instance.createNewContext();
|
||||
Log.writer = new TermIO(Log.context);
|
||||
}
|
||||
|
||||
private static function setMainoutout(newOutput: TermWriteable) {
|
||||
writer = new TermIO(newOutput);
|
||||
|
||||
Reference in New Issue
Block a user