Skip to content

WinEvents and ConPTY question #1811

@parkovski

Description

@parkovski

A few days ago I noticed that NeoVim in tmux does not pick up resize events properly, but mysteriously when a different console window is resized, it suddenly fixes itself. I just tracked this down to the fact that libuv is listening for the EVENT_CONSOLE_LAYOUT WinEvent for any window, which doesn't seem to be firing for PTY layout changes.

Now, I believe this is a libuv bug and they should be handling WINDOW_BUFFER_SIZE_EVENT. But before ConPTY existed, their way did work.

Basically I'm looking for some clarification here - what are the console WinEvents supposed to be for, and should they be enabled for PTYs as well? And if not, it might be a good idea to document that they are only sent for actual conhost windows.

Metadata

Metadata

Assignees

Labels

Area-InteropCommunication between processesIssue-QuestionFor questions or discussionProduct-ConptyFor console issues specifically related to conptyResolution-AnsweredRelated to questions that have been answered

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions