public TerminalSession(TerminalBuffer buffer, Stream stdin, Stream stdout) : this(buffer)
 {
     _ptyWriter = new StreamWriter(stdin, Encoding.UTF8)
     {
         AutoFlush = true
     };
     _ptyStdOut = stdout;
 }
 public TerminalSession(TerminalBuffer buffer, ExecutionProfile executionProfile) : this(buffer)
 {
     _pty       = new WinPty(executionProfile, buffer.Size);
     _ptyWriter = new StreamWriter(_pty.StandardInput, Encoding.UTF8)
     {
         AutoFlush = true
     };
     _ptyStdOut = _pty.StandardOutput;
 }
 private TerminalSession(TerminalBuffer buffer)
 {
     Buffer = buffer.AttachToSession(this);
 }