def read_printable(fd):

    lines = read(fd).splitlines()
    return "\n".join([printable(line) for line in lines]).lstrip("\r\n")
Read all output from the PTY at `fd` as a user would see it.
dataset/ETHPy150Open d11wtq/dockerpty/tests/util.py/read_printable