From 3e268d10876cdb4c3a10b5b19df40f9273ff8f19 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 5 Apr 2025 19:07:57 +0800 Subject: ansiec: Move ansi escape codes to this module --- ansiec/colors.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ansiec/colors.go (limited to 'ansiec/colors.go') diff --git a/ansiec/colors.go b/ansiec/colors.go new file mode 100644 index 0000000..fa8ea4f --- /dev/null +++ b/ansiec/colors.go @@ -0,0 +1,23 @@ +package ansiec + +var ( + Black = "\x1b[30m" + Red = "\x1b[31m" + Green = "\x1b[32m" + Yellow = "\x1b[33m" + Blue = "\x1b[34m" + Magenta = "\x1b[35m" + Cyan = "\x1b[36m" + White = "\x1b[37m" +) + +var ( + BrightBlack = "\x1b[30;1m" + BrightRed = "\x1b[31;1m" + BrightGreen = "\x1b[32;1m" + BrightYellow = "\x1b[33;1m" + BrightBlue = "\x1b[34;1m" + BrightMagenta = "\x1b[35;1m" + BrightCyan = "\x1b[36;1m" + BrightWhite = "\x1b[37;1m" +) -- cgit v1.2.3