logWriterSupportsColor

fnbool 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.

Parameters

outputFdoutput file descriptor to check

Returns

TRUE if ANSI color escapes are supported, FALSE otherwise