Skip to content

ConPTY: Ask for the cursor position after each resize #18725

@lhecker

Description

@lhecker

Description of the new feature

ConPTY's reflow algorithm may differ from the hosting terminal and that may result in ConPTY returning wildly incorrect cursor positions via GetConsoleCursorInfo. This results in the cursor being inside the previous prompt when resizing PowerShell in VS Code.

Proposed technical implementation details

Use the existing DSC CPR facilities in VtIo but make them more flexible so that they can be called more than once.

Complications:

  • The request must block the console server
  • ...but it must not block further incoming resizes (= debounce)

Metadata

Metadata

Assignees

Labels

Area-InputRelated to input processing (key presses, mouse, etc.)Area-ServerDown in the muck of API call servicing, interprocess communication, eventing, etc.Issue-TaskIt's a feature request, but it doesn't really need a major design.Priority-1A description (P1)Product-ConptyFor console issues specifically related to conpty

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions