pre uart exchange
This commit is contained in:
14
tool/core/utils.py
Normal file
14
tool/core/utils.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from rich.console import Console
|
||||
from rich.theme import Theme
|
||||
|
||||
custom_theme = Theme({
|
||||
"info": "bold blue",
|
||||
"warning": "yellow",
|
||||
"error": "bold red",
|
||||
"error_msg": "red",
|
||||
"sync": "bold magenta",
|
||||
"wait": "italic grey50"
|
||||
})
|
||||
|
||||
console = Console(theme=custom_theme, highlight=False)
|
||||
console_err = Console(theme=custom_theme, stderr=True, highlight=False)
|
||||
Reference in New Issue
Block a user