コード例 #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));
        }
コード例 #2
0
 private InputWriterOnlyPseudoConsole(SafePseudoConsoleHandle handle, SafeFileHandle consoleInputWriter)
 {
     _handle             = handle;
     _consoleInputWriter = consoleInputWriter;
 }