From 207d6565c70f6d922a69a7f5b1413fc5c9c09a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Hlavat=C3=BD?= Date: Sun, 22 Mar 2026 11:28:15 +0100 Subject: [PATCH] fix --- src/beaky/_ansi.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/beaky/_ansi.py diff --git a/src/beaky/_ansi.py b/src/beaky/_ansi.py new file mode 100644 index 0000000..1b032c5 --- /dev/null +++ b/src/beaky/_ansi.py @@ -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"