Restore the terminal to "program" mode, as previously saved by def_prog_mode().
curses/reset_prog_mode
reset_prog_mode