You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
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.
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.