microsoft/Terminal

Documentation of use of ConPTY together with STARTF_USESTDHANDLES is lacking.

Open

#4585 aperta il 14 feb 2020

Vedi su GitHub
 (2 commenti) (2 reazioni) (0 assegnatari)C++ (3212 fork)batch import
Area-ServerHelp WantedIssue-DocsProduct-Conpty

Metriche repository

Star
 (35.764 star)
Metriche merge PR
 (Merge medio 27g 19h) (24 PR mergiate in 30 g)

Descrizione

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.

Guida contributor