Closed tenox7 closed 1 year ago
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)
moar https://stackoverflow.com/questions/1811955/ncurses-terminal-size
tried both, doesn't work 🤷
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)