Beispiel #1
0
def message_and_await_yes_no(msg):
    check_manual_input_allowed()

    L.instruction(msg + ' (y/n)')
    char = get_one_of('yn')
    return True if char == 'y' else False
Beispiel #2
0
def message_and_await_string(msg):
    check_manual_input_allowed()

    L.instruction(msg)
    sys.stdin.flush()
    return sys.stdin.readline().strip()