

___X_CMD_TERM_COLOR=""

___x_cmd___termcolor_(){
    [ -z "$___X_CMD_TERM_COLOR" ]   ||  {
        x_="$___X_CMD_TERM_COLOR"
        return
    }

    case "$COLORTERM" in
        truecolor|24bit)        x_=true   ;;
        *)
            case "$TERM" in
                *-256color)     x_=256    ;;       # If 256 color enabled, use it
                *)              x_=8      ;;
            esac
        ;;
    esac
}
