microsoft/Terminal

Documentation of use of ConPTY together with STARTF_USESTDHANDLES is lacking.

開放

#4,585 建立於 2020年2月14日

 (2 則留言) (2 個反應) (0 位負責人)C++ (9,275 個分叉)batch import
Area-ServerHelp WantedIssue-DocsProduct-Conpty

倉庫指標

星標
 (103,173 顆星)
PR 合併指標
 (平均合併 27天 19小時) (30 天內合併 24 個 PR)

描述

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.

貢獻者指南