tenox7 / ttyplot

a realtime plotting utility for terminal/console with data input from stdin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

better SIGWINCH handler

tenox7 opened this issue · comments

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)

tried both, doesn't work 🤷