vim-signify/showcolors.bash

15 lines
251 B
Bash
Raw Permalink Normal View History

2013-07-03 11:23:38 -04:00
#!/bin/bash
if ! hash tput 2>/dev/null; then
echo "I cannot find the 'tput' program." \
'You might find it in one of the ncurses packages.' >&2
exit 1
fi
for i in {0..255}; do
tput setab $i && echo -n " $i "
done
2013-07-03 14:06:26 -04:00
tput sgr0
echo