Skip to content

Instantly share code, notes, and snippets.

@clairvy
Created October 14, 2010 02:45
Show Gist options
  • Save clairvy/625446 to your computer and use it in GitHub Desktop.
Save clairvy/625446 to your computer and use it in GitHub Desktop.
#!/usr/bin/env zsh
# -*- coding: utf-8-unix; -*-
# vim: et fenc=utf-8 ff=unix
# 256色確認
function pcolor() {
for ((f = 0; f < 255; f++)); do
printf "\e[38;5;%dm %3d*■\e[m" $f $f
if [[ $f%8 -eq 7 ]] then
printf "\n"
fi
done
echo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment