Skip to content

Instantly share code, notes, and snippets.

@ranmocy
Last active December 19, 2015 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ranmocy/5948764 to your computer and use it in GitHub Desktop.
Save ranmocy/5948764 to your computer and use it in GitHub Desktop.
Change Color of TTY
# Change default colour codes
if [ "$TERM" = "linux" ]; then
echo -en "\E]P0222222" #black
echo -en "\E]P1D96D71" #darkred
echo -en "\E]P25AE54F" #darkgreen
echo -en "\E]P3FFBC35" #darkyellow
echo -en "\E]P400BDFA" #darkblue
echo -en "\E]P5FF655A" #darkmagenta
echo -en "\E]P68DD0E3" #darkcyan
echo -en "\E]P7F0F1F3" #lightgrey
echo -en "\E]P8856D6E" #grey
echo -en "\E]P9D86549" #red
echo -en "\E]PACEF257" #green
echo -en "\E]PBFFEEA1" #yellow
echo -en "\E]PC74ABED" #blue
echo -en "\E]PDF59F93" #magenta
echo -en "\E]PECAE2FD" #cyan
echo -en "\E]PFFFEEE0" #white
clear #for background artifacting
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment