code: def _handle_prompt_command(self, buffer):
          " When a command-prompt command is accepted. "
          text = buffer.text
          prompt_command = self.prompt_command
  
          # Leave command mode and handle command.
          self.pymux.leave_command_mode(append_to_history=True)
          self.pymux.handle_command(prompt_command.replace('%%', text)f _handle_prompt_command(self, buffer):
          " When a command-prompt command is accepted. "
          text = buffer.text
          prompt_command = self.prompt_command
  
          # Leave command mode and handle command.
          self.pymux.leave_command_mode(append_to_history=True)
          self.pymux.handle_command(prompt_command.replace('%%', text))
docs: When a command-prompt command is accepted.