We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9b011 commit 9a08a2dCopy full SHA for 9a08a2d
rich/console.py
@@ -996,12 +996,13 @@ def is_dumb_terminal(self) -> bool:
996
@property
997
def options(self) -> ConsoleOptions:
998
"""Get default console options."""
999
+ size = self.size
1000
return ConsoleOptions(
- max_height=self.size.height,
1001
- size=self.size,
+ max_height=size.height,
1002
+ size=size,
1003
legacy_windows=self.legacy_windows,
1004
min_width=1,
- max_width=self.width,
1005
+ max_width=size.width,
1006
encoding=self.encoding,
1007
is_terminal=self.is_terminal,
1008
)
0 commit comments