def ask_string(question, default=None):
    if default:
        question += " (%s)" % default
    ui.info(ui.green, "::", ui.reset, question)
    try:
        answer = read_input()
    except KeyboardInterrupt:
        return default
    if not answer:
        return default
    return answer
Ask the user to enter something.
dataset/ETHPy150Open aldebaran/qibuild/python/qisys/interact.py/ask_string