Пример #1
0
    public TerminalConsole(DisplaySystem screen, Terminal terminal)
    {
        _terminal       = terminal;
        _screen         = screen;
        Typer           = new TextTyper(screen, this);
        _runEventsTimer = new Timer(_outDeltaTime, RunEvents);
        _buffer         = new CommandBuffer(10);
        _dynamicCode    = new DynamicCode(this, screen);
        _clipTimer      = new Timer(_startClipDelay, StartClip);
        _tick           = _tickDelay;
        _fileController = new FileController(this);
        _fileController.UpdateDirsList();
        _fileController.UpdateFileList();
        _runner = new CommandRunner(Typer, _fileController, this);

        Writter = new ConsoleWriter(Typer);
        Invoker = new ActionInvoker();

        _screen.BlackScreen();
        _screen.Apply();
    }