Created
April 19, 2019 17:16
-
-
Save kaz3w/d5352bd2ec7f8734c27e79e24518d4de to your computer and use it in GitHub Desktop.
Color Code Sample
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
#!/bin/bash | |
# | |
# このファイルは、様々なカラーコードを端末にエコーし、どんな色が | |
# 使用可能かを示します。 | |
# それぞれの行では、黒とグレイの背景の上に一つの色を示し、コードを中央に | |
# 表示しています。白、黒、グリーンの背景色で確認してあります。(2 Dec 98) | |
# | |
echo " On Light Gray: On Black:" | |
echo -e "\033[47m\033[1;37m White \033[0m\ | |
1;37m \ | |
\033[40m\033[1;37m White \033[0m" | |
echo -e "\033[47m\033[37m Light Gray \033[0m\ | |
37m \ | |
\033[40m\033[37m Light Gray \033[0m" | |
echo -e "\033[47m\033[1;30m Gray \033[0m\ | |
1;30m \ | |
\033[40m\033[1;30m Gray \033[0m" | |
echo -e "\033[47m\033[30m Black \033[0m\ | |
30m \ | |
\033[40m\033[30m Black \033[0m" | |
echo -e "\033[47m\033[31m Red \033[0m\ | |
31m \ | |
\033[40m\033[31m Red \033[0m" | |
echo -e "\033[47m\033[1;31m Light Red \033[0m\ | |
1;31m \ | |
\033[40m\033[1;31m Light Red \033[0m" | |
echo -e "\033[47m\033[32m Green \033[0m\ | |
32m \ | |
\033[40m\033[32m Green \033[0m" | |
echo -e "\033[47m\033[1;32m Light Green \033[0m\ | |
1;32m \ | |
\033[40m\033[1;32m Light Green \033[0m" | |
echo -e "\033[47m\033[33m Brown \033[0m\ | |
33m \ | |
\033[40m\033[33m Brown \033[0m" | |
echo -e "\033[47m\033[1;33m Yellow \033[0m\ | |
1;33m \ | |
\033[40m\033[1;33m Yellow \033[0m" | |
echo -e "\033[47m\033[34m Blue \033[0m\ | |
34m \ | |
\033[40m\033[34m Blue \033[0m" | |
echo -e "\033[47m\033[1;34m Light Blue \033[0m\ | |
1;34m \ | |
\033[40m\033[1;34m Light Blue \033[0m" | |
echo -e "\033[47m\033[35m Purple \033[0m\ | |
35m \ | |
\033[40m\033[35m Purple \033[0m" | |
echo -e "\033[47m\033[1;35m Pink \033[0m\ | |
1;35m \ | |
\033[40m\033[1;35m Pink \033[0m" | |
echo -e "\033[47m\033[36m Cyan \033[0m\ | |
36m \ | |
\033[40m\033[36m Cyan \033[0m" | |
echo -e "\033[47m\033[1;36m Light Cyan \033[0m\ | |
1;36m \ | |
\033[40m\033[1;36m Light Cyan \033[0m" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment