summaryrefslogtreecommitdiff
path: root/.local/bin/colorbars
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-03 19:27:15 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-03 19:27:15 -0400
commite371d9edd474bcf89cf5d462eaccb8638900b390 (patch)
treeed07118f5c514a55f23a779a1507640e46fd9ed2 /.local/bin/colorbars
Initial commit
Diffstat (limited to '.local/bin/colorbars')
-rwxr-xr-x.local/bin/colorbars38
1 files changed, 38 insertions, 0 deletions
diff --git a/.local/bin/colorbars b/.local/bin/colorbars
new file mode 100755
index 0000000..4e3b8f7
--- /dev/null
+++ b/.local/bin/colorbars
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# colorbars - smpte color bars in sh
+# http://git.io/colorbars
+
+echo
+
+for y in $(seq 0 13); do
+ printf %s ' '
+ for color in 7 3 6 2 5 1 4; do
+ tput setab ${color}
+ printf %s ' '
+ done
+ tput sgr0
+ echo
+done
+
+for y in 0 1; do
+ printf %s ' '
+ for color in 4 0 5 0 6 0 7; do
+ tput setab ${color}
+ printf %s ' '
+ done
+ tput sgr0
+ echo
+done
+
+for y in $(seq 0 4); do
+ printf %s ' '
+ for color in 4 4 4 4 4 7 7 7 7 7 5 5 5 5 5 0 0 0 0 0 0 0 0 0 0 0 0 0; do
+ tput setab ${color}
+ printf %s ' '
+ done
+ tput sgr0
+ echo
+done
+
+echo