Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. # A bash function to print out a table of
  2. # colors supported by your terminal.
  3.  
  4. colortable() {
  5. tput setaf 0
  6. for i in $(seq 0 $(tput colors)); do
  7. tput setab $i
  8. printf %4d $i
  9. done
  10. echo
  11. tput sgr0
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement