<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _confirm_or_prompt_or_command(pymux):
    " True when we are waiting for a command, prompt or confirmation. "
    client_state = pymux.get_client_state()
    if client_state.confirm_text or client_state.prompt_command or client_state.command_mode:
        return True