logWriterSupportsColor

Check whether the given output_fd file descriptor supports ANSI color escape sequences.

If so, they can safely be used when formatting log messages.

bool
logWriterSupportsColor
()

Parameters

outputFd int

output file descriptor to check

Return Value

Type: bool

TRUE if ANSI color escapes are supported, FALSE otherwise