private ConsoleStatus status = Idle;
public SimpleConsole(ConsoleConfig config) {
registerShutdownHook();
context = new SimpleContainer();
context.addInstance(Container.class, context);
context.addInstance(Console.class, this);
context.addInstance(ConsoleHistory.class, historyFromFile(startsWith(":h!").or(blank()), config.historyFile));
context.addInstance(ConsoleConfig.class, config);
context.addInstance(Evaluator.class, config.evaluator);