コード例 #1
0
        public ConsoleManager()
        {
            ConsoleToStandardOutput = null;
            Consoles = new List <ConsoleInstance>();
            Renderer = new GlobalRenderer(ConsoleAsync.ConsoleWidth, ConsoleAsync.ConsoleHeight);

            input = new GlobalInput(Renderer);
            input.CommandReceived += InputCommandReceived;
            input.CicleConsole    += InputCicleConsole;
            input.EscapePressed   += InputEscapePressed;

            consoleStandardOutput = new StringBuilder();
            Console.SetOut(new StringWriter(consoleStandardOutput));
        }
コード例 #2
0
ファイル: GlobalInput.cs プロジェクト: 3HMonkey/consoleasync
 public GlobalInput(GlobalRenderer Renderer)
 {
     renderer         = Renderer;
     previousCommands = new List <string>();
 }