mirror of
https://github.com/notwa/rc
synced 2025-03-20 08:15:38 -07:00
document colors function
This commit is contained in:
parent
cefcd1779e
commit
208dc56791
1 changed files with 4 additions and 1 deletions
|
@ -4,8 +4,11 @@
|
||||||
# NO_DASH
|
# NO_DASH
|
||||||
|
|
||||||
colors() { ### @-
|
colors() { ### @-
|
||||||
### print out all the foreground and background terminal color combinations.
|
### display all combinations of foreground and background terminal colors.
|
||||||
|
### this only includes the basic 16-color palette.
|
||||||
### excluding boilerplate, this script is a mere a 76-characters long!
|
### excluding boilerplate, this script is a mere a 76-characters long!
|
||||||
|
###
|
||||||
|
### 
|
||||||
[ $# -eq 0 ] || { printf "%s\n" "$0: does not take arguments" >&2; return 1; }
|
[ $# -eq 0 ] || { printf "%s\n" "$0: does not take arguments" >&2; return 1; }
|
||||||
printf "\e[%dm$(printf " \e[%dm mV \e[40m" {4,10}{0..7})\e[0m\n" {3,9}{0..7}
|
printf "\e[%dm$(printf " \e[%dm mV \e[40m" {4,10}{0..7})\e[0m\n" {3,9}{0..7}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue