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

better SIGWINCH handler #76

Closed
tenox7 opened this issue Mar 13, 2023 · 2 comments
Closed

better SIGWINCH handler #76

tenox7 opened this issue Mar 13, 2023 · 2 comments

Comments

@tenox7
Copy link
Owner

tenox7 commented Mar 13, 2023

on modern systems resizeterm() should be called in sigwinch handler instead of endwin() && refresh()

on some systems getmaxyx doesn't work correctly, use TIOCGWINSZ instead see how old svr4 vi does it (ex_v.c)

@tenox7
Copy link
Owner Author

tenox7 commented Mar 22, 2023

@tenox7 tenox7 changed the title use TIOCGWINSZ on older systems better SIGWINCH handler Mar 22, 2023
@tenox7
Copy link
Owner Author

tenox7 commented Mar 27, 2023

tried both, doesn't work 🤷

@tenox7 tenox7 closed this as completed Mar 27, 2023
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

No branches or pull requests

1 participant