def repl():
    try:
        while True:
            l('lrn ', 'cyan', False)
            l('> ', 'blue', False)
            cmd = raw_input('')
            if 'cd ' in cmd:
                folder = cmd[3:]
                os.chdir(folder)
            else:
                os.system(cmd)
            outcome = check_progress(cmd)
            if outcome == 0:
                lrn.next_task()

    except (EOFError, __HOLE__):
        print('Exiting lrn. Enter `lrn resume` to resume.')
        exit(0)
dataset/ETHPy150Open lrn-guru/lrn/lrn/repl.py/repl