mirror of https://github.com/Textualize/rich.git
commit
9b42555e26
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue