Resets the shell mode saved by def_shell_mode
This function is currently not documented; only its argument list is available.