2017.01.27 18:21

터미널 출력색 변경(디버그 메세지 색 변경)

 

#define dDEBUG_INIT \033[0m
#define dDEBUG_BOLD \033[1m
#define dDEBUG_ITALIC \033[3m
#define dDEBUG_UNDERLINE \033[4m
#define dDEBUG_REVERSE \033[7m
#define dDEBUG_HORIZONTALLINE \033[9m
#define dDEBUG_REMOVEBOLD \033[22m
#define dDEBUG_REMOVEITALIC \033[23m
#define dDEBUG_REMOVEUNDERLINE \033[24m
#define dDEBUG_REMOVEREVERSE \033[27m
#define dDEBUG_REMOVEHORIZONTALLINE \033[29m
#define dDEBUG_COLORBLACK \033[0;30m
#define dDEBUG_COLORRED \033[0;31m
#define dDEBUG_COLORGREEN \033[0;32m
#define dDEBUG_COLORYELLOW \033[0;33m
#define dDEBUG_COLORBLUE \033[0;34m
#define dDEBUG_COLORMAGENTA \033[0;35m
#define dDEBUG_COLORCYAN \033[0;36m
#define dDEBUG_COLORWHITE \033[0;37m
#define dDEBUG_COLORLIGHTBLACK \033[1;30m
#define dDEBUG_COLORLIGHTRED \033[1;31m
#define dDEBUG_COLORLIGHTGREEN \033[1;32m
#define dDEBUG_COLORLIGHTYELLOW \033[1;33m
#define dDEBUG_COLORLIGHTBLUE \033[1;34m
#define dDEBUG_COLORLIGHTMAGENTA \033[1;35m
#define dDEBUG_COLORLIGHTCYAN \033[1;36m
#define dDEBUG_COLORLIGHTWHITE \033[1;37m
#define dDEBUG_COLORINIT \033[39m
#define dDEBUG_BGCOLORBLACK \033[0;40m
#define dDEBUG_BGCOLORRED \033[0;41m
#define dDEBUG_BGCOLORGREEN \033[0;42m
#define dDEBUG_BGCOLORYELLOW \033[0;43m
#define dDEBUG_BGCOLORBLUE \033[0;44m
#define dDEBUG_BGCOLORMAGENTA \033[0;45m
#define dDEBUG_BGCOLORCYAN \033[0;46m
#define dDEBUG_BGCOLORWHITE \033[0;47m
#define dDEBUG_BGCOLORLIGHTBLACK \033[1;40m
#define dDEBUG_BGCOLORLIGHTRED \033[1;41m
#define dDEBUG_BGCOLORLIGHTGREEN \033[1;42m
#define dDEBUG_BGCOLORLIGHTYELLOW \033[1;43m
#define dDEBUG_BGCOLORLIGHTBLUE \033[1;44m
#define dDEBUG_BGCOLORLIGHTMAGENTA \033[1;45m
#define dDEBUG_BGCOLORLIGHTCYAN \033[1;46m
#define dDEBUG_BGCOLORLIGHTWHITE \033[1;47m
#define dDEBUG_BGCOLORINIT \033[0;49m

 

 

 

#define dDEBUG_INIT '\033[0m'
#define dDEBUG_BOLD '\033[1m'
#define dDEBUG_ITALIC '\033[3m'
#define dDEBUG_UNDERLINE '\033[4m'
#define dDEBUG_REVERSE '\033[7m'
#define dDEBUG_HORIZONTALLINE '\033[9m'
#define dDEBUG_REMOVEBOLD '\033[22m'
#define dDEBUG_REMOVEITALIC '\033[23m'
#define dDEBUG_REMOVEUNDERLINE '\033[24m'
#define dDEBUG_REMOVEREVERSE '\033[27m'
#define dDEBUG_REMOVEHORIZONTALLINE '\033[29m'
#define dDEBUG_COLORBLACK '\033[0;30m'
#define dDEBUG_COLORRED '\033[0;31m'
#define dDEBUG_COLORGREEN '\033[0;32m'
#define dDEBUG_COLORYELLOW '\033[0;33m'
#define dDEBUG_COLORBLUE '\033[0;34m'
#define dDEBUG_COLORMAGENTA '\033[0;35m'
#define dDEBUG_COLORCYAN '\033[0;36m'
#define dDEBUG_COLORWHITE '\033[0;37m'
#define dDEBUG_COLORLIGHTBLACK '\033[1;30m'
#define dDEBUG_COLORLIGHTRED '\033[1;31m'
#define dDEBUG_COLORLIGHTGREEN '\033[1;32m'
#define dDEBUG_COLORLIGHTYELLOW '\033[1;33m'
#define dDEBUG_COLORLIGHTBLUE '\033[1;34m'
#define dDEBUG_COLORLIGHTMAGENTA '\033[1;35m'
#define dDEBUG_COLORLIGHTCYAN '\033[1;36m'
#define dDEBUG_COLORLIGHTWHITE '\033[1;37m'
#define dDEBUG_COLORINIT '\033[39m'
#define dDEBUG_BGCOLORBLACK '\033[0;40m'
#define dDEBUG_BGCOLORRED '\033[0;41m'
#define dDEBUG_BGCOLORGREEN '\033[0;42m'
#define dDEBUG_BGCOLORYELLOW '\033[0;43m'
#define dDEBUG_BGCOLORBLUE '\033[0;44m'
#define dDEBUG_BGCOLORMAGENTA '\033[0;45m'
#define dDEBUG_BGCOLORCYAN '\033[0;46m'
#define dDEBUG_BGCOLORWHITE '\033[0;47m'
#define dDEBUG_BGCOLORLIGHTBLACK '\033[1;40m'
#define dDEBUG_BGCOLORLIGHTRED '\033[1;41m'
#define dDEBUG_BGCOLORLIGHTGREEN '\033[1;42m'
#define dDEBUG_BGCOLORLIGHTYELLOW '\033[1;43m'
#define dDEBUG_BGCOLORLIGHTBLUE '\033[1;44m'
#define dDEBUG_BGCOLORLIGHTMAGENTA '\033[1;45m'
#define dDEBUG_BGCOLORLIGHTCYAN '\033[1;46m'
#define dDEBUG_BGCOLORLIGHTWHITE '\033[1;47m'
#define dDEBUG_BGCOLORINIT '\033[0;49m'

 

 

=> http://m.blog.naver.com/chu2_1/120152511989

Posted by 초보 HW 엔지니어 로망와니

댓글을 달아 주세요