Skip to content

Instantly share code, notes, and snippets.

@juanique
Created September 12, 2013 06:04
Show Gist options
  • Select an option

  • Save juanique/6533519 to your computer and use it in GitHub Desktop.

Select an option

Save juanique/6533519 to your computer and use it in GitHub Desktop.
Terminal color test
#!/bin/bash
RESTORE='\033[0m'
RED='\033[00;31m'
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
BLUE='\033[00;34m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
LIGHTGRAY='\033[00;37m'
LRED='\033[01;31m'
LGREEN='\033[01;32m'
LYELLOW='\033[01;33m'
LBLUE='\033[01;34m'
LPURPLE='\033[01;35m'
LCYAN='\033[01;36m'
WHITE='\033[01;37m'
BLACK='\033[00;30m'
DGRAY='\033[01;30m'
echo -e "${RED}Red ${Restore}"
echo -e "${GREEN}Green ${Restore}"
echo -e "${YELLOW}Yellow ${Restore}"
echo -e "${BLUE}Blue ${Restore}"
echo -e "${PURPLE}Purple${Restore}"
echo -e "${CYAN}Cyan ${Restore}"
echo -e "${LIGHTGRAY}LightGray ${Restore}"
echo -e "${LRED}LRed ${Restore}"
echo -e "${LGREEN}LGreen ${Restore}"
echo -e "${LYELLOW}LYellow ${Restore}"
echo -e "${LBLUE}LBlue ${Restore}"
echo -e "${LPURPLE}LPurple ${Restore}"
echo -e "${LCYAN}LCyan ${Restore}"
echo -e "${WHITE}White ${Restore}"
echo -e "${BLACK}Black ${Restore}"
echo -e "${DGRAY}Dark Gray ${Restore}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment