def has_resized(self):
            # Get the current Window dimensions and check them against last
            # time.
            re_sized = False
            info = self._stdout.GetConsoleScreenBufferInfo()['Window']
            width = info.Right - info.Left + 1
            height = info.Bottom - info.Top + 1
            if self._last_width is not None and (
                    width != self._last_width or height != self._last_height):
                re_sized = True
            self._last_width = width
            self._last_height = height
            return re_sized
Check whether the screen has been re-sized.
dataset/ETHPy150Open peterbrittain/asciimatics/asciimatics/screen.py/_WindowsScreen.has_resized