from rich.console import Console console = Console(record=True, width=80)