mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Customise console
This commit is contained in:
parent
db51802086
commit
e746654b80
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue