Example #1
0
        public static InputWriterOnlyPseudoConsole Create()
        {
            var(inputReader, inputWriter) = FilePal.CreatePipePair();
            var outputWriter = FilePal.OpenNullDevice(FileAccess.Write);
            var hPC          = SafePseudoConsoleHandle.Create(inputReader, outputWriter);

            return(new InputWriterOnlyPseudoConsole(hPC, inputWriter));
        }
Example #2
0
 private InputWriterOnlyPseudoConsole(SafePseudoConsoleHandle handle, SafeFileHandle consoleInputWriter)
 {
     _handle             = handle;
     _consoleInputWriter = consoleInputWriter;
 }