diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-08 10:52:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-12-08 10:52:04 +0200 |
commit | 393ab18520eb5019d00822ae744a4d4e65304226 (patch) | |
tree | bbc3f7a6b504d63a2c1dd134627c890ba5fe297c /bpkg/utility.hxx | |
parent | 180fdc20372d6501b8fcabb66e1d3cbda02b35c9 (diff) |
Add --[no]diag-color options (infrastructure only)
Diffstat (limited to 'bpkg/utility.hxx')
-rw-r--r-- | bpkg/utility.hxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bpkg/utility.hxx b/bpkg/utility.hxx index 342d608..1f5c725 100644 --- a/bpkg/utility.hxx +++ b/bpkg/utility.hxx @@ -152,9 +152,17 @@ namespace bpkg dir_path current_directory (); - // 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; // Y/N prompt. See butl::yn_prompt() for details (this is a thin wrapper). // |