/// <summary> /// Invoke the CLI loop in a separate thread. /// </summary> public void Run(SdlAltoWindow mainWindow) { Console.WriteLine("You are at the ContrAlto console. Type 'show commands' to see"); Console.WriteLine("a list of possible commands, and hit Tab to see possible command completions."); _mainWindow = mainWindow; _mainWindow.OnClosed += OnMainWindowClosed; _cliThread = new Thread(RunCliThread); _cliThread.Start(); }
/// <summary> /// Invoke the CLI loop in a separate thread. /// </summary> public void Run(SdlAltoWindow mainWindow) { Console.WriteLine("You are at the ContrAlto console. Type 'show commands' to see"); Console.WriteLine("a list of possible commands, and hit Tab to see possible command completions."); _mainWindow = mainWindow; _mainWindow.OnClosed += OnMainWindowClosed; _cliThread = new Thread(RunCliThread); _cliThread.Start(); if (!string.IsNullOrWhiteSpace(StartupOptions.ScriptFile)) { Console.WriteLine("Starting playback of script {0}", StartupOptions.ScriptFile); ScriptManager.StartPlayback(_system, _controller, StartupOptions.ScriptFile); _controller.StartExecution(AlternateBootType.None); } }