def leave_command_mode(self, append_to_history=False):
client_state = self.get_client_state()<EOL>client_state.command_buffer.reset(append_to_history=append_to_history)<EOL>client_state.prompt_buffer.reset(append_to_history=True)<EOL>client_state.prompt_command = '<STR_LIT>'<EOL>client_state.confirm_command = '<STR_LIT>'<EOL>client_state.app.layout.focus_previous()<EOL>
Leave the command/prompt mode.