I've asked to several people if `COLORTERM` was set in their env. Answers vary …
For Kitty, that's ok (set to _truecolor_ ). For rxvt-xpm, it's set to _rxvt-xpm_. It seems that testing `COLORTERM` is the best way to know if a term has true colors caps ( _s-lang_ does this way and _ncurses_ … does not know what color beyond 16 is :) ). If COLORTERM can contain "YES!" , for sure it will be hard to test. I see two workarounds: 1) launching my program with `COLORTERM=truecolor ./myprogram` or 2) modify `enableTrueColor` for allowing to force its setting to true. I've found the two options quite lame, but YMMV.