tenox7 / ttyplot

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

Add pledge() support #37

Closed sjmulder closed 5 years ago

sjmulder commented 5 years ago

initscr() is moved up so we don't need rpath for curses accessing its terminal database.

tenox7 commented 5 years ago

This doesn't work for displaying usage info, eg. when running ttyplot -h. This is because usage() printf()s to curses initialized screen. I'm fine with adding pledge() but perhaps after getopt loop?

sjmulder commented 5 years ago

Ouch, good catch. I should've tested a bit more.