-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DISCUSSION: An example of running terminal (either Windows Terminal, or conhost) attached to pseudo console #8819
Comments
Okay so it might be helpful to have additional terminology defined here.
So it sounds like you have a client app that needs to output to multiple terminals all at once, correct? Kinda like a reverse |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
@zadjii-msft you are absolutely right! I have tried to code example here https://github.com/vvavrychuk/multipty-example/blob/master/multipty.c It opens given number of ptys and launches xterm for each using -S flag. If user types something in xterm, it returns back to main application There should be also a way to type client id and message in main application and it will be sent to corresponding client, but that's not finished in this example. Also, I should probably use non-buffered IO... |
I'm going to take triage off this, but keep it open as a discussion question. 😄 Thanks! |
I would like to feed/consume pseudo console pipes from my application and have some terminal (either Windows Terminal, or conhost) connected to this pseudo console. This is almost like https://github.com/microsoft/terminal/tree/main/samples/ConPTY/EchoCon but a little bit reversed. In EchoCon, application that feeds pseudo console (ping) is running as a separate process and current process is assumed to be run from terminal. But I want current process to feed pseudo console (current process can be run from terminal or not, it should not matter), and some terminal should be run from my application connected to pseudo console in a separate window.
The background is that I am porting application from Linux which uses multiple pseudo-consoles in one process. It is reading and writing to/from them in one thread sequentially. And it spawns multiple xterms connected to those pseudo consoles.
If I create multiple Windows pseudo consoles in one process, how can I spawn multiple terminal applications (conhost.exe?, Windows Terminal) to output content of those pseudo consoles?
The text was updated successfully, but these errors were encountered: