termenv icon indicating copy to clipboard operation
termenv copied to clipboard

Advanced ANSI style & color support for your terminal applications

Results 48 termenv issues
Sort by recently updated
recently updated
newest added

Hi is it possible to get the tests cover all the code?

Currently, `HasDarkBackground()` just checks if the lightness is smaller than 0.5. This is obviously subjective (as acknowledged in the docs with the work "dark-ish") but what's more important is that...

On Windows, the query functionality also returns the same incorrect values. This is because the query functions for Windows return hardcoded values. The new Windows Terminal may soon support queries...

The README.md claims this supports nested styles, but I didn't see any examples. I tried: ```go colorful := termenv.String("colorful").Foreground(termenv.ANSIRed) hello := termenv.String("Hello", colorful.String(), "world").Foreground(termenv.ANSIBlue).String() fmt.Println(hello) ``` But this printed something...

This adds support for CSS named colors via [Gamut](https://github.com/muesli/gamut), so you can do something like the following (per #29): ``` p := termenv.ColorProfile() s := termenv.String("Hello!").Foreground(p.Color("red")).String() ```

I would love to see named based color detection as a feature, so termenv can be an even better drop in replacement for libraries like `ansicolor`: ```go // c :=...

enhancement

In the context of https://github.com/cockroachdb/cockroach/pull/86457 I found that our unit tests using Expect were getting confused by the initial termenv read. We need to disable that somehow. @muesli taught me...

Replace lambda with a simple addition

allows to get the profile name, useful for logs/errors.

enhancement

Fixes godot lint, comments should end in a period.