aboutsummaryrefslogtreecommitdiff
path: root/bdep/utility.hxx
diff options
context:
space:
mode:
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.
//