Inheritance: System.IO.Stream
Esempio n. 1
0
        public void StartApp(IConsoleApp app, Stream input, Stream output, bool enableEcho, string parameters)
        {
            if (input == null)
            {
                input = new AppInputStream();
            }

            if (output == null)
            {
                var session = ConsoleManager.Controller.CreateSeason();

                output = new AppOutputStream(session);
            }

            app.Console.Input      = input;
            app.Console.Output     = output;
            app.Console.EnableEcho = enableEcho;
            app.AppManager         = this;

            SetCurrentApplication(app);

            app.Start(parameters);
        }
Esempio n. 2
0
        public void StartApp(IConsoleApp app, Stream input, Stream output, bool enableEcho, string parameters)
        {
            if (input == null)
            {
                input = new AppInputStream();
            }

            if (output == null)
            {
                var session = Mosa.Kernel.x86.ConsoleManager.Controller.CreateSeason();

                output = new AppOutputStream(session);
            }

            app.Console.Input = input;
            app.Console.Output = output;
            app.Console.EnableEcho = enableEcho;
            app.AppManager = this;

            SetCurrentApplication(app);

            app.Start(parameters);
        }
Esempio n. 3
0
        public void Start()
        {
            var stream = new AppOutputStream(CoolWorld.x86.Boot.Console);

            StartApp(shell, null, stream, true, null);
        }
Esempio n. 4
0
        public void Start()
        {
            var stream = new AppOutputStream(Mosa.CoolWorld.x86.Boot.Console);

            StartApp(shell, null, stream, true, null);
        }