350 questions
Re: https://github.com/microsoft/terminal/blob/main/samples/ConPTY/MiniTerm/MiniTerm/Terminal.cs (Sample Code for pseudoconsole)
Carso
1
Reputation point
private static void CopyPipeToOutput(SafeFileHandle outputReadSide)
{
using (var terminalOutput = Console.OpenStandardOutput())
using (var pseudoConsoleOutput = new FileStream(outputReadSide, FileAccess.Read))
{
pseudoConsoleOutput.CopyTo(terminalOutput);
}
}
Above code from sample reads PseudoConsole output and copies it to the terminal's standard out. Setting a breakpoint only works when the terminal is first started but never subsequently gets hit. I'm trying to intercept the pseudoconsole output and send it to a socket. Any thoughts are greatly appreciated. Thanks!
Developer technologies .NET .NET CLI
Sign in to answer