pmcurses hacks