본문으로 바로가기

### 쉘 ###


1. echo 로 색상변경해서 출력하기


#echo -e "\e[45m test \e[0m"



2. 리눅스 프롬프트에 색상 넣기


#export PS1="[\e[35m\u\e[31m@\e[33m\h\e[37m \e[34m\W\e[m]\\$ "




### 파이썬 ###


1. 색상변경해서 출력하기 


print '\033[1;30m   Gray    \033[1;m'


print '\033[1;31m   Red     \033[1;m'


print '\033[1;32m   Green   \033[1;m'


print '\033[1;33m   Yellow  \033[1;m'


print '\033[1;34m   Blue    \033[1;m'


print '\033[1;35m   Magenta \033[1;m'


print '\033[1;36m   Cyan    \033[1;m'


print '\033[1;37m   White   \033[1;m'