Last active
November 22, 2023 01:27
-
-
Save loopyd/6099a8c75e2e2a0c0b6643a0f7d48187 to your computer and use it in GitHub Desktop.
[sh|bash] ANSII color library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------------------------- | |
# Color library - created by deity l. dragon <[email protected]> | |
# --------------------------------------------------------------------------------- | |
# | |
# Covers all ANSI colors and formatting options in standard 7-color TTY mode. | |
# | |
C_Reset="\033[0m" | |
# Normal Bold Underline | |
C_Black="\033[0;30m"; C_B_Black="\033[1;30m"; C_U_Black="\033[4;30m" | |
C_Red="\033[0;31m"; C_B_Red="\033[1;31m"; C_U_Red="\033[4;31m" | |
C_Green="\033[0;32m"; C_B_Green="\033[1;32m"; C_U_Green="\033[4;32m" | |
C_Yellow="\033[0;33m"; C_B_Yellow="\033[1;33m"; C_U_Yellow="\033[4;33m" | |
C_Blue="\033[0;34m"; C_B_Blue="\033[1;34m"; C_U_Blue="\033[4;34m" | |
C_Purple="\033[0;35m"; C_B_Purple="\033[1;35m"; C_U_Purple="\033[4;35m" | |
C_Cyan="\033[0;36m"; C_B_Cyan="\033[1;36m"; C_U_Cyan="\033[4;36m" | |
C_White="\033[0;37m"; C_B_White="\033[1;37m"; C_U_White="\033[4;37m" | |
# High Intensty Bold High Intensity Underline High Intensity | |
C_I_Black="\033[0;90m"; C_I_B_Black="\033[1;90m"; C_I_U_Black="\033[4;90m" | |
C_I_Red="\033[0;91m"; C_I_B_Red="\033[1;91m"; C_I_U_Red="\033[4;91m" | |
C_I_Green="\033[0;92m"; C_I_B_Green="\033[1;92m"; C_I_U_Green="\033[4;92m" | |
C_I_Yellow="\033[0;93m"; C_I_B_Yellow="\033[1;93m"; C_I_U_Yellow="\033[4;93m" | |
C_I_Blue="\033[0;94m"; C_I_B_Blue="\033[1;94m"; C_I_U_Blue="\033[4;94m" | |
C_I_Purple="\033[0;95m"; C_I_B_Purple="\033[1;95m"; C_I_U_Purple="\033[4;95m" | |
C_I_Cyan="\033[0;96m"; C_I_B_Cyan="\033[1;96m"; C_I_U_Cyan="\033[4;96m" | |
C_I_White="\033[0;97m"; C_I_B_White="\033[1;97m"; C_I_U_White="\033[4;97m" | |
# Normal background High Intensity Background | |
On_Black="\033[40m"; On_IBlack="\033[0;100m" | |
On_Red="\033[41m"; On_IRed="\033[0;101m" | |
On_Green="\033[42m"; On_IGreen="\033[0;102m" | |
On_Yellow="\033[43m"; On_IYellow="\033[0;103m" | |
On_Blue="\033[44m"; On_IBlue="\033[0;104m" | |
On_Purple="\033[45m"; On_IPurple="\033[10;95m" | |
On_Cyan="\033[46m"; On_ICyan="\033[0;106m" | |
On_White="\033[47m"; On_IWhite="\033[0;107m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment