Skip to content

Instantly share code, notes, and snippets.

@LeSpocky
Created February 5, 2016 15:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save LeSpocky/0b06e836f451f9afafda to your computer and use it in GitHub Desktop.
# ----------------------------------------------------------------------
# quick and dirty color helping stuff
# ----------------------------------------------------------------------
ESC_START='\033['
ESC_SEP=';'
ESC_END='m'
COL_RST="${ESC_START}0${ESC_END}"
COL_BOLD='1'
COL_FG_RED='31'
COL_FG_GREEN='32'
COL_FG_BR_YELLOW='93'
COL_FG_BR_BLUE='94'
COL_BG_BLACK='40'
COL_BG_DEFAULT='49'
COL_INFO="${ESC_START}${COL_FG_GREEN}${ESC_END}"
COL_WARN="${ESC_START}${COL_BOLD}${ESC_SEP}${COL_FG_BR_YELLOW}${ESC_SEP}${COL_BG_BLACK}${ESC_END}"
COL_ERR="${ESC_START}${COL_BOLD}${ESC_SEP}${COL_FG_RED}${ESC_END}"
COL_MSG="${ESC_START}${COL_FG_BR_BLUE}${ESC_END}"
# vim: set noet sts=0 ts=4 sw=4 sr ft=sh:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment