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