Skip to content

fix: use const colors to skip reading querying for the terminal bg color - #93

Merged
aymanbagabas merged 1 commit into
mainfrom
ansi-chars
Nov 27, 2023
Merged

aymanbagabas merged 1 commit into
mainfrom
ansi-chars

Conversation

@aymanbagabas

Copy link
Copy Markdown
Contributor

Don't use AdaptiveColors and use regular colors instead. This makes the default styles not use HasDarkBackground to determine the terminal background color. HasDarkBackground will query the terminal for the background color using OSC 11 to determine which color to use in AdaptiveColor.

For users who still want to use AdaptiveColors, they can supply their own custom styles.

Fixes: #90

Don't use AdaptiveColors and use regular colors instead. This makes the
default styles _not_ use HasDarkBackground to determine the terminal
background color. HasDarkBackground will query the terminal for the
background color using `OSC 11` to determine which color to use in
AdaptiveColor.

For users who still want to use AdaptiveColors, they can supply their
own custom styles.

Fixes: #90
@codecov

codecov Bot commented Nov 22, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f36448c) 80.56% compared to head (9d027f0) 80.16%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
- Coverage   80.56%   80.16%   -0.40%     
==========================================
  Files          11       11              
  Lines         746      731      -15     
==========================================
- Hits          601      586      -15     
  Misses        131      131              
  Partials       14       14              

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

@aymanbagabas
aymanbagabas merged commit b7f36a8 into main Nov 27, 2023
@aymanbagabas
aymanbagabas deleted the ansi-chars branch November 27, 2023 16:37
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.

ansi characters when air is used

1 participant

⌂ 换网址