summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2009-11-03 21:46:22 +0100
committerFlorian Pritz <bluewind@xssn.at>2009-11-03 21:46:22 +0100
commitbd90ef3b38168877beccf38a401e0aa1acbd404f (patch)
treee5d9b34000990861049f83e73019b70dac8fbd26
parentb941b9f3cde98ff61d3aab0f2c90113ebf84bbc0 (diff)
downloadbin-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-x256colors.sh8
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