Pseudocosole output reader #11928

Open
opened 2026-01-31 03:01:21 +00:00 by claunia · 0 comments
Owner

Originally created by @VE-2016 on GitHub (Jan 1, 2021).

Hello,

The issue concerns pseudoconsole output, as taken from https://github.com/microsoft/terminal/tree/main/samples/ConPTY/MiniTerm

I would like to read output pipe from pseudoconsole to byte array - and it has been done.

After reading from output pipe - I am receiving for example the following line:

"\u001b[2J\u001b[m\u001b[HMicrosoft Windows [Version 10.0.19042.685]\u001b]0;C:\WINDOWS\SYSTEM32\cmd.exe\a\u001b[?25h"

Now, I would like to retrieve here proper string - together with all required information, for example foreground colors of chars etc. - so as to be able to send it to RichTtextBox control (not to application console).

How to achieve this aim? Is there any information and documentation?

Best regards,
JK

Originally created by @VE-2016 on GitHub (Jan 1, 2021). Hello, The issue concerns pseudoconsole output, as taken from https://github.com/microsoft/terminal/tree/main/samples/ConPTY/MiniTerm I would like to read output pipe from pseudoconsole to byte array - and it has been done. After reading from output pipe - I am receiving for example the following line: "\u001b[2J\u001b[m\u001b[HMicrosoft Windows [Version 10.0.19042.685]\u001b]0;C:\WINDOWS\SYSTEM32\cmd.exe\a\u001b[?25h" Now, I would like to retrieve here proper string - together with all required information, for example foreground colors of chars etc. - so as to be able to send it to RichTtextBox control (not to application console). How to achieve this aim? Is there any information and documentation? Best regards, JK
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 03:01:21 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11928