This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Reporting window size events in stdin #14958
Labels
Issue-Question
For questions or discussion
Needs-Tag-Fix
Doesn't match tag requirements
Resolution-Answered
Related to questions that have been answered
Windows Terminal version
1.16.10261.0
Windows build number
10.0.19044.0 (21H2)
Other Software
Steps to reproduce
I am setting my input handle with
ENABLE_VIRTUAL_TERMINAL_INPUT | ENABLE_WINDOW_INPUT | ENABLE_MOUSE_INPUT | ENABLE_EXTENDED_FLAGS
,Stdout's mode is left as default (
0x7
) with requests for focus reporting, mouse button reporting, and disablingmouse_any
reporting:\ESC[?1004h\ESC[?1003l\ESC[?1002h
.Then I read from my
stdin
.Expected Behavior
Some sort of binary/VT sequence of bytes to represent a window resize event.
Actual Behavior
Keyboard events are present in
stdin
(in their VT form), as are mouse and focus events. However, I have nothing when I resize the WT window (both via mouse or via fullscreen toggle via F11).The phrase
"User interactions that change the size of the console screen buffer are reported in the console's input buffer"
forENABLE_WINDOW_INPUT
on the page https://learn.microsoft.com/en-us/windows/console/high-level-console-modes has lead me to believe that I should get at least something - maybe not a VT escape sequence per se, but something.Is there anything in my configuration amiss? Is there a gentle
\ESC[?10XXh
equivalent of "please give me window resize events, too"?The example in https://learn.microsoft.com/en-us/windows/console/reading-input-buffer-events works fine without additional configuration.
Cheers!
The text was updated successfully, but these errors were encountered: