The Wayback Machine - https://web.archive.org/web/20200521192020/https://github.com/microsoft/terminal/issues/4585
Skip to content
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

Documentation of use of ConPTY together with STARTF_USESTDHANDLES is lacking. #4585

Open
grubba opened this issue Feb 14, 2020 · 2 comments
Open

Comments

@grubba
Copy link

@grubba grubba commented Feb 14, 2020

All existing documentation of ConPTY seem to only mention the case where stdin, stdout and stderr are all to be connected to the pty and no STARTF_USESTDHANDLES. The only mention that the proper value to have in StartupInfo.hStdInput et al when STARTF_USESTDHANDLES is active is NULL is indirectly in the documentation for GetStdHandle().

Using STARTF_USESTDHANDLES is useful if you want to keep stdout and stderr separate or want to redirect one of them to eg a file.

An explicit mention in conjunction with STARTUPINFOA and/or PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE would be appreciated.

Thanks.

@DHowett-MSFT
Copy link
Contributor

@DHowett-MSFT DHowett-MSFT commented Feb 21, 2020

Thanks for the request! I'll mark this one for documentation on the console backlog.

@nyitnyitnet
Copy link

@nyitnyitnet nyitnyitnet commented Apr 3, 2020

Çoment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.