code: def a_send_line(text, ctx):
      
      if hasattr(text, '__iter__'):
          try:
              ctx.ctrl.sendline(text.next())
          except StopIteration:
              ctx.finished = True
      else:
          ctx.ctrl.sendline(text)
      return True
docs: Send text line to the controller followed by `os.linesep`.