Advertisement
mysql_Anarchy

[ BASH ] \033 color gen

Jun 17th, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. for fgbg in 38 48 ; do # Foreground / Background
  2.     for color in {0..255} ; do # Colors
  3.         # Display the color
  4.         printf "\e[${fgbg};5;%sm  %3s  \e[0m" $color $color
  5.         # Display 6 colors per lines
  6.         if [ $((($color + 1) % 6)) == 4 ] ; then
  7.             echo # New line
  8.         fi
  9.     done
  10.     echo # New line
  11. done
  12.  
  13. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement