Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong terminal size on windows #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marler8997
Copy link
Contributor

Looks like this commit broke getting the terminal size on windows:

342c47e

They modified the size of the wAttributes field on CONSOLE_SCREEN_BUFFER_INFO. This appears to have been a mistake as it looks like they probably just did a search/replace of all the u16 types with u32, however, we can't change the size of this field as it's defined by the OS and in doing so our srWindow offset is now incorrect.

Looks like this commit broke getting the terminal size on windows:

342c47e

They modified the size of the `wAttributes` field on `CONSOLE_SCREEN_BUFFER_INFO`.
This appears to have been a mistake as it looks like they probably just
did a search/replace of all the `u16` types with `u32`, however, we
can't change the size of this field as it's defined by the OS and
in doing so our `srWindow` offset is now incorrect.
@sylr
Copy link
Contributor

sylr commented Jan 7, 2025

Oops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants