Customise console

This commit is contained in:
nexy7574 2023-03-22 16:37:20 +00:00
parent db51802086
commit e746654b80

View file

@ -1,5 +1,14 @@
from rich import get_console
import shutil
from rich.console import Console
_col, _ = shutil.get_terminal_size((80, 20))
if _col == 80:
_col = 160
__all__ = ("console",)
console = get_console()
console = Console(
width=_col,
soft_wrap=True,
tab_size=4
)