Example #1
0
		static Console ()
		{
			@in = new StreamInputStream (System.Console.OpenStandardInput ());
			@out = new StreamOutputStream (System.Console.OpenStandardOutput ());
			@err = new StreamOutputStream (System.Console.OpenStandardError ());
			@out_ps = new ConsolePrintStream (@out);
			@err_ps = new ConsolePrintStream (@err);

			console = new Console (@in, @out);
		}
Example #2
0
        static Console()
        {
            @in     = new StreamInputStream(System.Console.OpenStandardInput());
            @out    = new StreamOutputStream(System.Console.OpenStandardOutput());
            @err    = new StreamOutputStream(System.Console.OpenStandardError());
            @out_ps = new ConsolePrintStream(@out);
            @err_ps = new ConsolePrintStream(@err);

            console = new Console(@in, @out);
        }