manually handle curses.wrapper settings
curses.error catches changes to general catches
reset of term settings substituted by endwin() call