Restore the terminal to "shell" mode, as previously saved by def_shell_mode().
curses/reset_shell_mode
reset_shell_mode