Skip to content

How should applications behave when running under Windows Terminal if they want to maximize functionality? #18214

Answered by lhecker
marchelzo asked this question in Q&A
Discussion options

You must be logged in to vote

Since termios and ioctl don't exist in Windows, do we still use the Console API for things like getting Windows Terminal out of line-input mode, or requesting the window size?

Yes. For anything where there's a VT equivalent, I'd try to use VT, but otherwise the console APIs are just fine.

Under conhost.exe, the KeyEvent.dwControlKeyState field seems to be populated correctly, but under Windows Terminal it's always zero.

If there's a behavior difference between conhost and Windows Terminal, I'd consider that a bug. But not necessarily a bug in Windows Terminal: When you request ENABLE_VIRTUAL_TERMINAL_INPUT we'll give you an UNIX-style stdin that cannot for instance represent pressing …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lhecker
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
2 participants
Converted from issue

This discussion was converted from issue #18127 on November 18, 2024 21:34.