def METHOD_NAME(self):
    callback = self.prompt_callback
    self.has_custom_prompt = (callback is not None)
    user_input = input(self.prompt_message)
    self.has_custom_prompt = False
    self.prompt_message = ""
    self.prompt_callback = None
    events.emit("cli-prompt-finished")
    # Check if custom prompt is active
    if self._handle_prompt_callback(user_input, callback):
        return
    # No custom prompt, treat input as command
    self._handle_prompt_command(user_input)