Skip to content

Force truecolor support to avoid automatic color detection. (4.x)#1634

Merged
kmvanbrunt merged 1 commit intomainfrom
fix_colors_4.x
Apr 13, 2026
Merged

Force truecolor support to avoid automatic color detection. (4.x)#1634
kmvanbrunt merged 1 commit intomainfrom
fix_colors_4.x

Conversation

@kmvanbrunt
Copy link
Copy Markdown
Member

@kmvanbrunt kmvanbrunt commented Apr 13, 2026

Explicitly set the color system to "truecolor" in Cmd2BaseConsole and rich_text_to_string() when styling is allowed. This avoids Rich's automatic color detection, which can strip colors in test environments where TERM=dumb is set.

Closes #1629

Explicitly set the color system to "truecolor" in Cmd2BaseConsole and
rich_text_to_string() when styling is allowed. This avoids Rich's
automatic color detection, which can strip colors in test environments
where TERM=dumb is set.
@kmvanbrunt kmvanbrunt requested a review from tleonhardt as a code owner April 13, 2026 22:46
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (ea66804) to head (d01a178).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1634      +/-   ##
==========================================
+ Coverage   99.46%   99.51%   +0.04%     
==========================================
  Files          21       21              
  Lines        4697     4704       +7     
==========================================
+ Hits         4672     4681       +9     
+ Misses         25       23       -2     
Flag Coverage Δ
unittests 99.51% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kmvanbrunt kmvanbrunt merged commit 343509e into main Apr 13, 2026
33 checks passed
@kmvanbrunt kmvanbrunt deleted the fix_colors_4.x branch April 13, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants