Skip to content

Instantly share code, notes, and snippets.

@mlask
Last active October 7, 2020 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlask/b938834abb5b30d4e2272bbc6a33d6fa to your computer and use it in GitHub Desktop.
Save mlask/b938834abb5b30d4e2272bbc6a33d6fa to your computer and use it in GitHub Desktop.
ANSI color codes
#!/bin/zsh
for a in {30..47}; do (for b in {0..9}; do echo -n "\x1b[$b;$a""m" " $b;$a \x1b[0m";done;); echo "\x1b[0m"; done
for a in {90..107}; do (for b in {0..9}; do echo -n "\x1b[$b;$a""m" " $b;$a \x1b[0m";done;); echo "\x1b[0m"; done
@mlask
Copy link
Author

mlask commented Oct 7, 2020

ansi_codes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment