Move color dump to earlier in sgr builder.

This commit is contained in:
2022-06-04 09:29:55 -04:00
parent 5bbd039f7c
commit 1c32e0aa8c

View File

@ -69,6 +69,16 @@ then
shift 1 shift 1
fi fi
function dump_colors()
{
for key in ${!map[@]}
do
printf "%-24s${map[${key}]} |`$0 reset reverse fg:${key}`sample`$0 reset`|\n" ${key}
done
exit 0
}
function setup_color_depth() function setup_color_depth()
{ {
use_8_bit=0 use_8_bit=0
@ -285,16 +295,6 @@ function make_color()
render_color render_color
} }
function dump_colors()
{
for key in ${!map[@]}
do
printf "%-24s${map[${key}]} |`$0 reset reverse fg:${key}`sample`$0 reset`|\n" ${key}
done
exit 0
}
function named_color() function named_color()
{ {
name=${1,,} name=${1,,}