Last active
May 24, 2018 11:33
-
-
Save cesarmiquel/30755641c59a2cebea49bf1bdb353995 to your computer and use it in GitHub Desktop.
Bash Terminal Love
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
#!/bin/bash | |
# Fonts | |
# https://askubuntu.com/questions/528928/how-to-do-underline-bold-italic-strikethrough-color-background-and-size-i | |
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' | |
# Hyperlink (limited support) | |
echo -e '\e]8;;http://askubuntu.com\ahyperlink\e]8;;\a' |
Author
cesarmiquel
commented
May 23, 2018
For complete reference check this out:
https://misc.flogisoft.com/bash/tip_colors_and_formatting
More UTF symbols that you can use: http://jrgraphix.net/r/Unicode/2600-26FF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment