From 4fefccc72275e845180ba63902281a2ff7fa47bd Mon Sep 17 00:00:00 2001 From: siriusfox Date: Sat, 2 Aug 2025 16:05:50 -0700 Subject: [PATCH] Added stock text_colors.sh --- text_colors.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 text_colors.sh diff --git a/text_colors.sh b/text_colors.sh new file mode 100644 index 0000000..e4e4e65 --- /dev/null +++ b/text_colors.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +# Foreground FGs +TXT_FG_BLK="\e[30m" +TXT_FG_RED="\e[31m" +TXT_FG_YLW="\e[33m" +TXT_FG_GRN="\e[32m" +TXT_FG_BLU="\e[34m" +TXT_FG_PUR="\e[35m" +TXT_FG_CYN="\e[36m" +# Background FGs +TXT_BG_BLK="\e[40m" +TXT_BG_RED="\e[41m" +TXT_BG_YLW="\e[43m" +TXT_BG_GRN="\e[42m" +TXT_BG_BLU="\e[44m" +TXT_BG_PUR="\e[45m" +TXT_BG_CYN="\e[46m" +TXT_BG_WHT="\e[47m" + +# Reset +TXT_STD="\e[;10m" +TXT_RST="${TXT_STD}" + +# Bold or emphesis based upon terminal configuration. +TXT_EMPH="\e[7m"