When I use <curses.h> in a C program, has_colors() is true.
When following along the charms crash course linked in the README,
charms/ll:has_colors is charms/ll:FALSE on my terminal (kitty).
Removing the test indeed lead to a situation in which the code written in the article doesn't display any color.