C# ConPTY Example #370

Open
opened 2026-01-30 21:50:13 +00:00 by claunia · 0 comments
Owner

Originally created by @waf on GitHub (Sep 9, 2018).

I've created a (very) rough C# terminal using ConPTY. It's barely past "hello world" stage, but I thought it might be useful for others, as it includes the pinvoke constants and declarations required to get everything working.

https://github.com/waf/MiniTerm

It's pretty much a straight-forward translation of the C++ examples (including the work from @bitcrazed's PR). If there's interest, I could submit this in a PR to this repository. I'd need some help getting it up to an acceptable level of quality -- there are still rendering issues I'm trying to figure out.

The core of the interaction with the pseudoconsole is here:

ef13d4ea5e/MiniTerm/Program.cs (L37-L57)

Originally created by @waf on GitHub (Sep 9, 2018). I've created a (very) rough C# terminal using ConPTY. It's barely past "hello world" stage, but I thought it might be useful for others, as it includes the pinvoke constants and declarations required to get everything working. https://github.com/waf/MiniTerm It's pretty much a straight-forward translation of the C++ examples (including the work from @bitcrazed's PR). If there's interest, I could submit this in a PR to this repository. I'd need some help getting it up to an acceptable level of quality -- there are still rendering issues I'm trying to figure out. The core of the interaction with the pseudoconsole is here: https://github.com/waf/MiniTerm/blob/ef13d4ea5e5505aeb18efaad38d361a4ccf0c6f7/MiniTerm/Program.cs#L37-L57
claunia added the Product-Conpty label 2026-01-30 21:50:13 +00:00
Sign in to join this conversation.
No Label Product-Conpty
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#370