Created
January 23, 2022 17:40
-
-
Save gauteh/16898b27f20c166397864e999c4af82e to your computer and use it in GitHub Desktop.
This file contains 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
#! bash | |
# | |
# From: https://askubuntu.com/a/985386 | |
echo -e '\e[1mbold\e[22m' | |
echo -e '\e[2mdim\e[22m' | |
echo -e '\e[3mitalic\e[23m' | |
echo -e '\e[4munderline\e[24m' | |
echo -e '\e[4:1mthis is also underline (new in 0.52)\e[4:0m' | |
echo -e '\e[21mdouble underline (new in 0.52)\e[24m' | |
echo -e '\e[4:2mthis is also double underline (new in 0.52)\e[4:0m' | |
echo -e '\e[4:3mcurly underline (new in 0.52)\e[4:0m' | |
echo -e '\e[5mblink (new in 0.52)\e[25m' | |
echo -e '\e[7mreverse\e[27m' | |
echo -e '\e[8minvisible\e[28m <- invisible (but copy-pasteable)' | |
echo -e '\e[9mstrikethrough\e[29m' | |
echo -e '\e[53moverline (new in 0.52)\e[55m' | |
echo -e '\e[31mred\e[39m' | |
echo -e '\e[91mbright red\e[39m' | |
echo -e '\e[38:5:42m256-color, de jure standard (ITU-T T.416)\e[39m' | |
echo -e '\e[38;5;42m256-color, de facto standard (commonly used)\e[39m' | |
echo -e '\e[38:2::240:143:104mtruecolor, de jure standard (ITU-T T.416) (new in 0.52)\e[39m' | |
echo -e '\e[38:2:240:143:104mtruecolor, rarely used incorrect format (might be removed at some point)\e[39m' | |
echo -e '\e[38;2;240;143;104mtruecolor, de facto standard (commonly used)\e[39m' | |
echo -e '\e[46mcyan background\e[49m' | |
echo -e '\e[106mbright cyan background\e[49m' | |
echo -e '\e[48:5:42m256-color background, de jure standard (ITU-T T.416)\e[49m' | |
echo -e '\e[48;5;42m256-color background, de facto standard (commonly used)\e[49m' | |
echo -e '\e[48:2::240:143:104mtruecolor background, de jure standard (ITU-T T.416) (new in 0.52)\e[49m' | |
echo -e '\e[48:2:240:143:104mtruecolor background, rarely used incorrect format (might be removed at some point)\e[49m' | |
echo -e '\e[48;2;240;143;104mtruecolor background, de facto standard (commonly used)\e[49m' | |
echo -e '\e[21m\e[58:5:42m256-color underline (new in 0.52)\e[59m\e[24m' | |
echo -e '\e[21m\e[58;5;42m256-color underline (new in 0.52)\e[59m\e[24m' | |
echo -e '\e[4:3m\e[58:2::240:143:104mtruecolor underline (new in 0.52) (*)\e[59m\e[4:0m' | |
echo -e '\e[4:3m\e[58:2:240:143:104mtruecolor underline (new in 0.52) (might be removed at some point) (*)\e[59m\e[4:0m' | |
echo -e '\e[4:3m\e[58;2;240;143;104mtruecolor underline (new in 0.52) (*)\e[59m\e[4:0m' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment