def output(stream):
    while True:
        content = stream.read(1024)
        if len(content) == 0: break
        sys.stdout.write(content)
Return character before the cursor or an empty string.
dataset/ETHPy150Open splunk/splunk-sdk-python/examples/job.py/output--crossover with--dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/document.py/Document.char_before_cursor