MCPcopy
hub / github.com/Textualize/rich / options

Method options

rich/console.py:991–1002  ·  view source on GitHub ↗

Get default console options.

(self)

Source from the content-addressed store, hash-verified

989
990 @property
991 def options(self) -> ConsoleOptions:
992 """Get default console options."""
993 size = self.size
994 return ConsoleOptions(
995 max_height=size.height,
996 size=size,
997 legacy_windows=self.legacy_windows,
998 min_width=1,
999 max_width=size.width,
1000 encoding=self.encoding,
1001 is_terminal=self.is_terminal,
1002 )
1003
1004 @property
1005 def size(self) -> ConsoleDimensions:

Callers

nothing calls this directly

Calls 1

ConsoleOptionsClass · 0.85

Tested by

no test coverage detected