tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin
Apache License 2.0
961 stars 43 forks source link

better SIGWINCH handler #76

Closed tenox7 closed 1 year ago

tenox7 commented 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)

tenox7 commented 1 year ago

moar https://stackoverflow.com/questions/1811955/ncurses-terminal-size

tenox7 commented 1 year ago

tried both, doesn't work 🤷