TRUE if ANSI color escapes are supported, FALSE otherwisebool logWriterSupportsColor(int outputFd)Check whether the given output_fd file descriptor supports ANSI color escape sequences.
If so, they can safely be used when formatting log messages.
outputFd | output file descriptor to check |
TRUE if ANSI color escapes are supported, FALSE otherwise