ANSI 컬러 코드

깊이있는 삽질 Ubuntu Korea Community Wiki
이동: 둘러보기, 검색
GeekInside.jpg
  변태주의!

  지나치게 비정상적(?)인 사용법 등을 나타내는 문서입니다. 기본적인 지식이 없을 경우 알아듣지 못할 가능성이 있습니다!!!

터미널에서 컬러 보여주는 ANSI 코드 목록

echo "  [0m  : Default"
echo -e "\033[01m   [01m : Bold / Bright \033[0m"
echo -e "\033[3m    [3m  : Italic \033[0m"
echo -e "\033[4m    [4m  : Underline \033[0m"
echo -e "\033[7m    [7m  : Reverse(Font/Background) \033[0m"
echo -e "\033[9m    [9m  : Strike Out \033[0m"
echo -e "\033[22m   [22m : Remove Bold \033[0m"
echo -e "\033[23m   [23m : Remove Italic \033[0m"
echo -e "\033[24m   [24m : Remove Underline \033[0m"
echo -e "\033[27m   [27m : Remove Reverse \033[0m"
echo -e "\033[29m   [29m : Remove Strike-Out \033[0m"
echo -e "\033[30m\033[47m   [30m : Font:Black \033[0m"
echo -e "\033[31m   [31m : Font:Red \033[0m"
echo -e "\033[32m   [32m : Font:Green \033[0m"
echo -e "\033[33m   [33m : Font:Yellow \033[0m"
echo -e "\033[34m   [34m : Font:Blue \033[0m"
echo -e "\033[35m   [35m : Font:Magenta \033[0m"
echo -e "\033[36m   [36m : Font:Cyan \033[0m"
echo -e "\033[37m   [37m : Font:White \033[0m"
echo -e "\033[39m   [39m : Font: Default \033[0m"
echo -e "\033[40m   [40m : Background:Bkacl \033[0m"
echo -e "\033[41m   [41m : Background:Red \033[0m"
echo -e "\033[42m   [42m : Background:Green \033[0m"
echo -e "\033[33m   [33m : Font:Yellow \033[0m"
echo -e "\033[34m   [34m : Font:Blue \033[0m"
echo -e "\033[35m   [35m : Font:Magenta \033[0m"
echo -e "\033[36m   [36m : Font:Cyan \033[0m"
echo -e "\033[37m   [37m : Font:White \033[0m"
echo -e "\033[39m   [39m : Font: Default \033[0m"
echo -e "\033[40m   [40m : Background:Black \033[0m"
echo -e "\033[41m   [41m : Background:Red \033[0m"
echo -e "\033[42m   [42m : Background:Green \033[0m"
echo -e "\033[43m   [43m : Background:Yellow \033[0m"
echo -e "\033[44m   [44m : Background:Cyan \033[0m"
echo -e "\033[45m   [45m : Background:Magenta \033[0m"
echo -e "\033[46m   [46m : Background:Cyan \033[0m"
echo -e "\033[47m   [47m : Background:White \033[0m"
echo -e "\033[49m   [49m : Background: Default \033[0m"

--Seony (토론) 2014년 4월 25일 (금) 18:27 (KST)