Skip to content

Have a way of actually knowing the geometry of the terminal #18025

Closed

Description

@steviator

Description of the new feature/enhancement

A method by which the size of the terminal in rows and columns could be determined after resizing the window or changing font size

Proposed technical implementation details (optional)

In every other terminal emulator that I have ever used going back to Windows 3.1 there has been some method of determining the Window size of the terminal in use, either by reading something like the title-bar, status bar or a pop-up that appears while resizing the window or by directly forcing the window to a desired geometry using escape codes like Unix, or a command like ms-dos MODE.

None of these methods work in Windows Terminal and to make matters worse, the window size remains the same if you change the font size, causing the window geometry to change to unknowable values.

For Microsoft to implement one or more of the many established ways of determining the size of a terminal, this isn't rocket surgery.

Examples:

  • A pop-up that states the window size in rows and columns while resizing
  • Optionally displaying the window size in the title
  • Supporting escape codes to set the window size in rows and columns
  • Supporting the same commands to set the window size as conhost.exe
  • Something new and great dreamed up by the Windows Terminal developers

Activity

  1. added
    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.
    on Oct 10, 2024
  2. added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    Needs-Tag-FixDoesn't match tag requirements
    on Oct 10, 2024
  3. j4james commented on Oct 10, 2024

    @j4james
    Collaborator

    A method by which the size of the terminal in rows and columns could be determined after resizing the window or changing font size

    If you mean programmatically, you can query the size with a CSI 18 t escape sequence.

    A pop-up that states the window size in rows and columns while resizing

    This feature request is tracked in issue #2833.

    Supporting escape codes to set the window size in rows and columns

    Support for resizing with a CSI 8 t escape sequence was recently added in PR #17721. That functionality should be working in the nightly build. But note that it's only applicable when you have a single tab with a single pane. Other scenarios are tracked in issue #5094.

    Supporting the same commands to set the window size as conhost.exe

    That's also tracked in issue #5094.

  4. carlos-zamora commented on Oct 16, 2024

    @carlos-zamora

    Thanks for filing! We'll mark this as a /dup of #2833. Thanks for looking into this James Holderness (@j4james) 😊

  5. microsoft-github-policy-service commented on Oct 16, 2024

    @microsoft-github-policy-service
    Contributor

    Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

  6. added
    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.
    and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    Needs-Tag-FixDoesn't match tag requirements
    on Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions