diff options
author | Adam Warner <me@adamwarner.co.uk> | 2022-03-12 21:02:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 21:02:49 +0300 |
commit | 0631cb49845c621c7442198c809d8694db0a3618 (patch) | |
tree | 8f7424feee254e2d1e1f51a25f604702eab3d317 | |
parent | 36ca85866813434e00076d0ab95692876121921d (diff) | |
parent | 40b96e673b6af18c3ede288fc3e968e36f661238 (diff) |
Merge pull request #4645 from rdwebdesign/color_debug_web
Generate colorful debug logs to web interface
-rw-r--r-- | advanced/Scripts/COL_TABLE | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advanced/Scripts/COL_TABLE b/advanced/Scripts/COL_TABLE index d76be68c..2d2b074b 100644 --- a/advanced/Scripts/COL_TABLE +++ b/advanced/Scripts/COL_TABLE @@ -1,5 +1,5 @@ # Determine if terminal is capable of showing colors -if [[ -t 1 ]] && [[ $(tput colors) -ge 8 ]]; then +if ([[ -t 1 ]] && [[ $(tput colors) -ge 8 ]]) || [[ "${WEBCALL}" ]]; then # Bold and underline may not show up on all clients # If something MUST be emphasized, use both COL_BOLD='[1m' |