diff options
author | Florian Pritz <bluewind@xssn.at> | 2009-11-03 21:46:22 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2009-11-03 21:46:22 +0100 |
commit | bd90ef3b38168877beccf38a401e0aa1acbd404f (patch) | |
tree | e5d9b34000990861049f83e73019b70dac8fbd26 | |
parent | b941b9f3cde98ff61d3aab0f2c90113ebf84bbc0 (diff) | |
download | bin-bd90ef3b38168877beccf38a401e0aa1acbd404f.tar.gz bin-bd90ef3b38168877beccf38a401e0aa1acbd404f.tar.xz |
256colors.sh: print a table of font colors
src: http://bbs.archlinux.org/viewtopic.php?pid=648446#p648446
Signed-off-by: Florian Pritz <bluewind@xssn.at>
-rwxr-xr-x | 256colors.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/256colors.sh b/256colors.sh new file mode 100755 index 0000000..5967093 --- /dev/null +++ b/256colors.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo '^[[38;5;${i}m' + +for i in {16..255}; do + echo -en "\e[38;5;${i}mColor $i\t" + [ $((++j%6)) -eq 0 ] && echo +done |