Skip to content

Document the resize quirk for ConPTY #16911

@Unit2795

Description

@Unit2795

Description of the new feature/enhancement

When I issue a ResizePseudoConsole call, if the buffer is changing from a smaller size to a larger one, ConPTY outputs the reflowed buffer and overwrites any content currently in the terminal. If there were 50 lines of output, the buffer size was 24 lines, and I resize to 30 lines, the output will be overwritten with 24 lines. (The amount of content in the buffer at the time of the resize).

Proposed technical implementation details

Possible Solutions:

  1. Add the ability to disable the automatic output of the reflowed buffer
  2. Add ability to specify differing buffer and window sizes for ConPTY, such that the window size will ensure VT sequences are emitted in sync with the terminal ConPTY may be connected to and therefore output looks visually correct. While also allowing a scrollback buffer to be maintained and reflowed as needed.
    • Example Pseudocode:

      CreatePseudoConsole(windowSize, bufferSize, hInput, hOutput, dwFlags, phPC)
      

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRThis issue has a related PRIssue-TaskIt's a feature request, but it doesn't really need a major design.Needs-Tag-FixDoesn't match tag requirementsProduct-ConptyFor console issues specifically related to conpty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions