def _handle_prompt_command(self, buffer):
text = buffer.text<EOL>prompt_command = self.prompt_command<EOL>self.pymux.leave_command_mode(append_to_history=True)<EOL>self.pymux.handle_command(prompt_command.replace('<STR_LIT>', text))<EOL>
When a command-prompt command is accepted.