Skip to content

Instantly share code, notes, and snippets.

@kunthar
Created May 27, 2020 21:49
Show Gist options
  • Save kunthar/5fe686723f4f4815f5900bb36a4728da to your computer and use it in GitHub Desktop.
Save kunthar/5fe686723f4f4815f5900bb36a4728da to your computer and use it in GitHub Desktop.
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