Skip to content

Instantly share code, notes, and snippets.

@yukpiz yukpiz/bash256
Created Apr 6, 2015

Embed
What would you like to do?
bash 256 colors.
#!/bin/bash
for i in {0..255}; do
if [ $((${i} % 8)) -eq 0 ]; then
printf '\n'
fi
printf "\x1b[38;05;${i}m [38;05;%03dm" ${i}
done
printf '\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.