diff --git a/rich/console.py b/rich/console.py index ac1d34c4..3b08e394 100644 --- a/rich/console.py +++ b/rich/console.py @@ -941,7 +941,7 @@ class Console: """ if self._width is not None and self._height is not None: - return ConsoleDimensions(self._width - self.legacy_windows, self._height) + return ConsoleDimensions(self._width, self._height) if self.is_dumb_terminal: return ConsoleDimensions(80, 25) @@ -963,7 +963,7 @@ class Console: width = width or 80 height = height or 25 return ConsoleDimensions( - (width if self._width is None else self._width) - self.legacy_windows, + ((width - self.legacy_windows) if self._width is None else self._width), height if self._height is None else self._height, )