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)); }
private InputWriterOnlyPseudoConsole(SafePseudoConsoleHandle handle, SafeFileHandle consoleInputWriter) { _handle = handle; _consoleInputWriter = consoleInputWriter; }