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

If the color profile doesn't support ANSI color codes, then it likely shouldn't support any Style options either. This returns a no-op funcmap from `termenv.TemplateFuncs` when the color profile is...

Adds ability to reuse autodetection features of termenv with arbitrary outputs based on TERM and COLORTERM. relates to https://github.com/charmbracelet/bubbles/pull/152 and conversations in the charmbracelet slack

Added GetCursorPosition which returns `row`, `column` or `error` for the current position of the cursor on the terminal. This is especially useful when users print unpredictable amount of output to...

Can support for [mintty](https://mintty.github.io/) be added? This is default terminal emulator used by [MSYS2](https://www.msys2.org/). Its currently failing with: ```plain failed to get console mode for stdout: The handle is invalid....

bug

Many terminals and CLI tools now support [hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda). It would be nice if this could be used in termenv, and later lipgloss. I was going to make a PR, but...

enhancement

https://play.golang.org/p/vV2-0Q2g-9t ↑ Output of this playground link: ``` Test Test with color and bold Test with only color ``` But they should be removed, right?

enhancement

Is it possible to detect wether a terminal supports unicode characters or not using termenv?

This PR addresses #44 and #45 by adding the `AdaptiveFaint` and `ForceFaint` methods on the `Style` struct. The differences to the classic `Faint` method are well documented. It also adds...

## What's the problem? **Short answer:** `(Style).Faint()` does not change the style in some cases. **Long answer:** Currently `(Style).Faint()` uses the faint ANSI sequence. However, this sequence is not properly...