Skip to content

Commit c48e064

Browse files
fix(CI): setting TERM to xterm-256color
Signed-off-by: Shashwat Agrawal <shashwatagrawal473@gmail.com>
1 parent 1fc156e commit c48e064

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches: [ master ]
66
pull_request:
77

8+
env:
9+
TERM: xterm-256color
10+
811
jobs:
912
test:
1013
runs-on: ubuntu-latest

tec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ void _tec_detect_color_support(void) {
625625

626626
const char *term = getenv("TERM");
627627
if ((getenv("NO_COLOR") != NULL) || (!isatty(STDOUT_FILENO)) ||
628-
(term && strcmp(term, "dumb") == 0)) {
628+
(!term || term[0] == '\0' || strcmp(term, "dumb") == 0)) {
629629
tec_context.options.no_color = true;
630630
tec_context.options.use_ascii = true;
631631
return;

0 commit comments

Comments
 (0)