lib: support FORCE_COLOR
for non TTY streams
#48034
Merged
FORCE_COLOR
for non TTY streams
#48034