Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Window size ioctl not always accurate on Windows #3

@wjlroe

Description

@wjlroe

Sometimes, when you run bash on Ubuntu on Windows, the size of the terminal reported by ioctl is inaccurate. It seems to happen when you open the default window size (let's say that's 22 columns high), then use Windows+Left to snap it to the left half of the screen, if you query the window size now, the ioctl will not have changed (sometimes), but using the move cursor method will get the full window size. This means, if we have numbers from both ioctl and move cursor, we should prefer the move cursor method until finding out that doesn't work somewhere else.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions