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,,}