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