Skip to content

Instantly share code, notes, and snippets.

@kunthar
Created May 27, 2020 21:49
Embed
What would you like to do?
show colorscale of xterm
#!/bin/bash -
#title :colorscale.sh
#description :Show a rainbow of colors.
#author :bgw
#date :20111002
#version :0.1
#usage :./colorscale.sh
#notes :
#bash_version :4.1.5(1)-release
#==============================================================================
for c in {0..255} ; do
echo -e "\x1B[38;05;${c}m 38;05;${c}m. " ;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment