From 1c32e0aa8c29fecb21dde2f4a775209e41423811 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sat, 4 Jun 2022 09:29:55 -0400 Subject: [PATCH] Move color dump to earlier in sgr builder. --- bin/__build_sgr_code | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bin/__build_sgr_code b/bin/__build_sgr_code index 16cc572..f8ffe17 100755 --- a/bin/__build_sgr_code +++ b/bin/__build_sgr_code @@ -69,6 +69,16 @@ then shift 1 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() { use_8_bit=0 @@ -285,16 +295,6 @@ function make_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() { name=${1,,}