From f0b7196db8c4dd34c4b2247943e4dac44864b89c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Aug 2023 02:13:00 +0200 Subject: Add diagnostics color support on Windows (GH issue #312) Note that currently this has to be enabled with an explicit --diag-color option. In the future the plan is to enable it by default if supported. --- libbuild2/utility.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libbuild2/utility.hxx') diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index 43cb904..f37fc54 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -149,11 +149,9 @@ namespace build2 LIBBUILD2_SYMEXPORT extern bool diag_no_line; // --no-line LIBBUILD2_SYMEXPORT extern bool diag_no_column; // --no-column - // If stderr is not a terminal, then the value is absent (so can be used as - // bool). Otherwise, it is the value of the TERM environment variable (which - // can be NULL). + // True if stderr is a terminal. // - LIBBUILD2_SYMEXPORT extern optional stderr_term; + LIBBUILD2_SYMEXPORT extern bool stderr_term; // True if the color can be used on the stderr terminal. // -- cgit v1.1