Skip to content

Enable support for SIGWINCH reporting through ceKEY_RESIZE#26

Open
m7a wants to merge 1 commit intomazenharake:masterfrom
m7a:cekey_resize
Open

Enable support for SIGWINCH reporting through ceKEY_RESIZE#26
m7a wants to merge 1 commit intomazenharake:masterfrom
m7a:cekey_resize

Conversation

@m7a
Copy link
Contributor

@m7a m7a commented Aug 25, 2024

Previously, window resizing was reported to the applications through the opaque key code 410. Also, occasionally, the reported window size was wrong.

This commit attempts to fix this by adding a new constant ceKEY_RESIZE to detect the virtual key reported by NCurses for resize events. Also, the code is extended to explicitly query the current window size via ioctl.

I am not sure if this is the right solution, but it seems to be an improvement over the state from before hence I submit it for your consideration 😄

Previously, window resizing was reported to the applications through the opaque
key code 410. Also, occasionally, the reported window size was wrong.

This commit attempts to fix this by adding a new constant `ceKEY_RESIZE` to
detect the virtual key reported by NCurses for resize events. Also, the code
is extended to explicitly query the current window size via `ioctl`.
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.

1 participant