@secure_function
def set_prompt(scope, prompt=None):
    """
    Defines the pattern that is recognized at any future time when Exscript
    needs to wait for a prompt.