better SIGWINCH handler
tenox7 opened this issue · comments
Antoni Sawicki commented
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)
Antoni Sawicki commented
tried both, doesn't work 🤷