Skip to content

Instantly share code, notes, and snippets.

@nikhan
Created April 29, 2017 06:42
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 nikhan/2537eaa5144e44c87e7218b0ecf68521 to your computer and use it in GitHub Desktop.
Save nikhan/2537eaa5144e44c87e7218b0ecf68521 to your computer and use it in GitHub Desktop.
bash 256 color test
for i in {0..255} ; do
printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
printf "\n";
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment