try.. except wrapper for ncurses.set_curs