def input_loop():
 while (mestate.exit != True):
  try:
   if (mestate.exit != True):
    line = raw_input(mestate.rl.prompt)
  except EOFError:
   mestate.exit = True
   sys.exit(1)
  mestate.input_queue.put(line)

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