diff options
| author | miguel <miguel@megaloman.softwarefools.com> | 2021-01-24 21:33:31 +0100 |
|---|---|---|
| committer | miguel <miguel@megaloman.softwarefools.com> | 2021-01-24 21:33:31 +0100 |
| commit | 115a65be0583658a7f39a7abaeb2401448f0d7c9 (patch) | |
| tree | 3c75fc44222b72f11900d098da5d5ff157c19542 /terminalcols.sh | |
| parent | 5ec428a0c177025b9c04330ae3f39cbde27a2d81 (diff) | |
add some stuff from megaloman
Diffstat (limited to 'terminalcols.sh')
| -rwxr-xr-x | terminalcols.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/terminalcols.sh b/terminalcols.sh new file mode 100755 index 0000000..b681365 --- /dev/null +++ b/terminalcols.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +#https://askubuntu.com/questions/27314/script-to-display-all-terminal-colors + +for x in {0..8}; do + for i in {30..37}; do + for a in {40..47}; do + echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m " + done + echo + done +done + +echo "" + +# oneliner : for x in {0..8}; do for i in {30..37}; do for a in {40..47}; do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; done; echo; done; done; echo "" |
