use tparm instead of tiparm

osx comes with ncurses 5.4 (and homebrew only has 5.7?), but tiparm was
a new function in 5.8