Skip to content

Instantly share code, notes, and snippets.

View onaforeignshore's full-sized avatar

Christo Kotze onaforeignshore

  • United Arab Emirates
View GitHub Profile
@onaforeignshore
onaforeignshore / color-test.sh
Created May 2, 2017 18:30
Prints out the colors for 256-color terminal, as well as testing truecolor
#!/usr/bin/env bash
echo ""
echo -e " \033[38;5;231m System colors:\033[m"
for r in {0..2}; do
for i in {0..15}; do
if [[ "$r" == "1" ]]; then
if [[ $i -gt 1 && $i -ne 4 ]]; then printf "\033[38;5;16m"; fi
printf "\033[48;5;${i}m %03d \033[m " $i
else