def readlines(self, sizehint = 0):
        total = 0
        lines = []
        line = self.readline()
        while line:
            lines.append(line)
            total += len(line)
            if 0 < sizehint <= total:
                break
            line = self.readline()
        return lines
Returns terminal length and width as a tuple.
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/io.py/StringIO.readlines--crossover with--dataset/ETHPy150Open google/textfsm/terminal.py/TerminalSize