code: def add_input(cmd, immediate=False):
      '''add some command input to be processed'''
      if immediate:
          process_stdin(cmd)
      else:
          mpstate.input_queue.put(cmdf add_input(cmd, immediate=False):
      '''add some command input to be processed'''
      if immediate:
          process_stdin(cmd)
      else:
          mpstate.input_queue.put(cmd)
docs: add some command input to be processed