ã·ã§ã«ã§echoã®æåã«è²ãã¤ããæ¹æ³
ä¾
echo -e "\033[0;31mããã¹ã\033[0;39m"
ã¨ããã¨ããã¹ãã¨ããæåã赤ã§è¡¨ç¤ºãããã
以ä¸ã®å¤ªåã«ãªã£ã¦ããé¨åãå¤ãããã¨ã§ãæ§ã ãªè²ã«å¤ããããã
echo -e "\033[0;31mããã¹ã\033[0;39m"
æåè²ã®ã«ã©ã¼ããªã¨ã¼ã·ã§ã³
- 30 => é» : Black
- 31 => 赤 : Red
- 32 => ç· : Green
- 33 => é»è² : Yellow
- 34 => é : Blue
- 35 => ãã¼ã³ã : Magenta
- 36 => ã·ã¢ã³ : Cyan
- 37 => ç½ : White
æåèæ¯ã®ã«ã©ã¼ããªã¨ã¼ã·ã§ã³
- 40 => é» : Black
- 41 => 赤 : Red
- 42 => ç· : Green
- 43 => é»è² : Yellow
- 44 => é : Blue
- 45 => ãã¼ã³ã : Magenta
- 46 => ã·ã¢ã³ : Cyan
- 47 => ç½ : White
以ä¸ã®å¤ªåé¨åãå¤ããã°ã太åãä¸ç·ãé©ç¨å¯è½ã
echo -e "\033[0;31mããã¹ã\033[0;39m"
- 0 => ãã¼ãã« : All attributs off
- 1 => 太å : Bold on
- 4 => ä¸ç· : Underscore (on monochrome display adapter only)
- 5 => ç¹æ» : Blink on
- 7 => è²å転 Reverse video on
- 8 => Concealed on