From 5755ec31eb0bc2134d9c228c8a0edbe2c3e3c9b5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Dec 2022 10:52:19 +0200 Subject: Add --[no]diag-color options (infrastructure only) --- bdep/utility.hxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bdep/utility.hxx') diff --git a/bdep/utility.hxx b/bdep/utility.hxx index f5b0412..c7d4666 100644 --- a/bdep/utility.hxx +++ b/bdep/utility.hxx @@ -143,9 +143,17 @@ namespace bdep return move (normalize (r, what)); } - // Progress. + // Diagnostics. // - extern bool stderr_term; // True if stderr is a terminal. + // 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). + // + extern optional stderr_term; + + // True if the color can be used on the stderr terminal. + // + extern bool stderr_term_color; // Filesystem. // -- cgit v1.1