add color.sh

This commit is contained in:
Ingolf Wagner 2023-11-09 23:46:05 +01:00
parent 5dbf3a27ca
commit 5421d44a22
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

14
scripts/color.sh Normal file
View file

@ -0,0 +1,14 @@
#!/bin/bash
color(){
for c; do
printf '\e[48;5;%dm%03d' $c $c
done
printf '\e[0m \n'
}
IFS=$' \t\n'
color {0..15}
for ((i=0;i<6;i++)); do
color $(seq $((i*36+16)) $((i*36+51)))
done
color {232..255}