summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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