code: def input_loop():
      '''wait for user input'''
      while mpstate.status.exit != True:
          try:
              if mpstate.status.exit != True:
                  line = input(mpstate.rl.prompt)
          except EOFError:
              mpstate.status.exit = True
              sys.exit(1)
          mpstate.input_queue.put(linef input_loop():
      '''wait for user input'''
      while mpstate.status.exit != True:
          try:
              if mpstate.status.exit != True:
                  line = input(mpstate.rl.prompt)
          except EOFError:
              mpstate.status.exit = True
              sys.exit(1)
          mpstate.input_queue.put(line)
docs: wait for user input