Function

GLib-2.0GLiblog_writer_supports_colorSince 2.50

  • 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

    • output_fd: number

      output file descriptor to check

    Returns boolean

    TRUE if ANSI color escapes are supported, FALSE otherwise

    2.50