On mac os, when you use gnu-sed, gnu-grep, etc.. the tool call theses functions like we were using regular mac os functions.
I think we should catch the error when it is the case and try to execute the linux equivalent after.
Moreover, macos seems not to like declare -A CUI_COLORS(.