diff --git a/requirements.txt b/requirements.txt index 110aa322..904bb73d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ pyserial==3.5 PyYAML==5.4.1 pytest==6.2.3 RPi.GPIO==0.7.1 +colorama==0.4.4 diff --git a/trunner/text.py b/trunner/text.py index 36f32cd6..24c63eec 100644 --- a/trunner/text.py +++ b/trunner/text.py @@ -1,37 +1,21 @@ -# from colorama import Style, Fore - -# def bold(s: str) -> str: -# return Style.BRIGHT + s + Style.RESET_ALL -# -# def red(s: str) -> str: -# return Fore.RED + s + Fore.RESET -# -# def green(s: str) -> str: -# return Fore.GREEN + s + Fore.RESET -# -# def yellow(s: str) -> str: -# return Fore.YELLOW + s + Fore.RESET -# -# -# def blue(s: str) -> str: -# return Fore.BLUE + s + Fore.RESET +from colorama import Style, Fore def bold(s: str) -> str: - return s + return Style.BRIGHT + s + Style.RESET_ALL def red(s: str) -> str: - return s + return Fore.RED + s + Fore.RESET def green(s: str) -> str: - return s + return Fore.GREEN + s + Fore.RESET def yellow(s: str) -> str: - return s + return Fore.YELLOW + s + Fore.RESET def blue(s: str) -> str: - return s + return Fore.BLUE + s + Fore.RESET