Skip to content

How to disable ENABLE_LINE_INPUT in ConPTY? How to call GetConsoleMode for a PseudoConsole? #13257

Answered by zadjii-msft
lonnywong asked this question in Q&A
Discussion options

You must be logged in to vote

But I can't change the child process to disable ENABLE_LINE_INPUT.

Huh. I think you might be stuck here then. I don't think we provide any sort of way to call the console APIs on a conpty you create. There might be some trickery possible. You might be able to attach some other helper disable-line-input.exe to the same conpty, which just calls that API, and have it magically work. IIRC input mode is a global state, so multiple attached clients can mess with each other's state. But, I'd also caution that's definitely a hack and one we're intending to fix (#4954)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zadjii-msft
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Issue-Question For questions or discussion Product-Conpty For console issues specifically related to conpty Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements
2 participants
Converted from issue

This discussion was converted from issue #13201 on June 09, 2022 16:37.