adding terminal_colors
This commit is contained in:
parent
c432bffe76
commit
431ebe6578
1 changed files with 13 additions and 0 deletions
13
shell/terminal_colors.sh
Executable file
13
shell/terminal_colors.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# display the terminal color palette
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
echo
|
||||
for i in $(seq 0 255); do
|
||||
printf "\e[0;48;5;${i}m %03d\e[0;38;5;${i}m %03d " $i $i
|
||||
[[ $i -eq 7 || $i -eq 15 || $i -eq 231 || $i -eq 239 || $i -eq 247 ]] && echo
|
||||
[[ $i -ge 15 && $i -le 231 && $(( ($i - 15) % 6 )) -eq 0 ]] && echo
|
||||
done
|
||||
echo;echo
|
||||
Loading…
Add table
Add a link
Reference in a new issue