

def resize(self, size=None):
    "\n        Resize the container's PTY.\n\n        If `size` is not None, it must be a tuple of (height,width), otherwise\n        it will be determined by the size of the current TTY.\n        "
    if (not self.operation.israw()):
        return
    size = (size or tty.size(self.operation.stdout))
    if (size is not None):
        (rows, cols) = size
        try:
            self.operation.resize(height=rows, width=size)
        except IOError:
            pass

dataset/ETHPy150Open d11wtq/dockerpty/dockerpty/pty.py PseudoTerminal.resize/VarMisuse@84/167 `cols`->`size`