aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-12-08 10:52:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-12-08 10:52:19 +0200
commit5755ec31eb0bc2134d9c228c8a0edbe2c3e3c9b5 (patch)
tree6ff40d57fa9b802bd24331db71ec33d15cb4844e /bdep/utility.hxx
parent8ea9bf7420a74e750f5ffbceb1b8667b097b3e96 (diff)
Add --[no]diag-color options (infrastructure only)
Diffstat (limited to 'bdep/utility.hxx')
-rw-r--r--bdep/utility.hxx12
1 files changed, 10 insertions, 2 deletions
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<const char*> stderr_term;
+
+ // True if the color can be used on the stderr terminal.
+ //
+ extern bool stderr_term_color;
// Filesystem.
//