add formats to colors.sh
This commit is contained in:
parent
96851f6332
commit
90fc9fd08d
48
play zone/fg.sh
Normal file
48
play zone/fg.sh
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo "foreground colors"
|
||||||
|
echo -e "\e[39mDefault"
|
||||||
|
echo -e "\e[30mBlack"
|
||||||
|
echo -e "\e[31mRed"
|
||||||
|
echo -e "\e[32mGreen"
|
||||||
|
echo -e "\e[33mYellow"
|
||||||
|
echo -e "\e[34mBlue"
|
||||||
|
echo -e "\e[35mMagenta"
|
||||||
|
echo -e "\e[36mCyan"
|
||||||
|
echo -e "\e[37mLight gray"
|
||||||
|
echo -e "\e[90mDark gray"
|
||||||
|
echo -e "\e[91mLight red"
|
||||||
|
echo -e "\e[92mLight green"
|
||||||
|
echo -e "\e[93mLight yellow"
|
||||||
|
echo -e "\e[94mLight blue"
|
||||||
|
echo -e "\e[95mLight magenta"
|
||||||
|
echo -e "\e[96mLight cyan"
|
||||||
|
echo -e "\e[97mWhite"
|
||||||
|
#7: _('Default'), 0: _('Black'), 4: _('Red'), 2: _('Green'), 6: _('Yellow'), 1: _('Blue'), 5: _('Magenta'), 3: _('Cyan'), 7: _('Light gray'), 8: _('Dark gray'), 12: _('Light red'), 10: , ('Light green'), 14: _('Light yellow'), 9: _('Light blue'), 13: _('Light magenta'), 11: _('Light cyan'), 15: _('White')
|
||||||
|
|
||||||
|
echo "background colors"
|
||||||
|
echo -e "\e[49mDefault"
|
||||||
|
echo -e "\e[40mBlack"
|
||||||
|
echo -e "\e[41mRed"
|
||||||
|
echo -e "\e[42mGreen"
|
||||||
|
echo -e "\e[43mYellow"
|
||||||
|
echo -e "\e[44mBlue"
|
||||||
|
echo -e "\e[45mMagenta"
|
||||||
|
echo -e "\e[46mCyan"
|
||||||
|
echo -e "\e[47mLight gray"
|
||||||
|
echo -e "\e[100mDark gray"
|
||||||
|
echo -e "\e[101mLight red"
|
||||||
|
echo -e "\e[102mLight green"
|
||||||
|
echo -e "\e[103mLight yellow"
|
||||||
|
echo -e "\e[104mLight blue"
|
||||||
|
echo -e "\e[105mLight magenta"
|
||||||
|
echo -e "\e[106mLight cyan"
|
||||||
|
echo -e "\e[107mWhite"
|
||||||
|
|
||||||
|
echo "format"
|
||||||
|
echo -e "\e[1mBold"
|
||||||
|
echo -e "\e[2mDim"
|
||||||
|
echo -e "\e[4mUnderlined"
|
||||||
|
echo -e "\e[5mBlink"
|
||||||
|
echo -e "\e[7minverted"
|
||||||
|
echo -e "\e[8mHidden"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user