fix
This commit is contained in:
29
src/beaky/_ansi.py
Normal file
29
src/beaky/_ansi.py
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
|
||||||
|
def bold(text: str) -> str:
|
||||||
|
return f"\033[1m{text}\033[0m"
|
||||||
|
|
||||||
|
|
||||||
|
def dim(text: str) -> str:
|
||||||
|
return f"\033[2m{text}\033[0m"
|
||||||
|
|
||||||
|
|
||||||
|
def green(text: str) -> str:
|
||||||
|
return f"\033[32m{text}\033[0m"
|
||||||
|
|
||||||
|
|
||||||
|
def red(text: str) -> str:
|
||||||
|
return f"\033[31m{text}\033[0m"
|
||||||
|
|
||||||
|
|
||||||
|
def yellow(text: str) -> str:
|
||||||
|
return f"\033[33m{text}\033[0m"
|
||||||
|
|
||||||
|
|
||||||
|
def cyan(text: str) -> str:
|
||||||
|
return f"\033[36m{text}\033[0m"
|
||||||
|
|
||||||
|
|
||||||
|
def gray(text: str) -> str:
|
||||||
|
return f"\033[90m{text}\033[0m"
|
||||||
Reference in New Issue
Block a user