Codebase list golang-github-muesli-termenv / 662a4e4
Add documentation about EnvColorProfile Christian Muehlhaeuser 2 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4646 - `termenv.ANSI` - 16 color ANSI support
4747 - `termenv.ANSI256` - Extended 256 color ANSI support
4848 - `termenv.TrueColor` - RGB/TrueColor support
49
50 Alternatively, you can use `termenv.EnvColorProfile` which evaluates the
51 terminal like `ColorProfile`, but also respects the `NO_COLOR` and
52 `CLICOLOR_FORCE` environment variables.
4953
5054 You can also query the terminal for its color scheme, so you know whether your
5155 app is running in a light- or dark-themed environment:
5050
5151 // EnableWindowsANSIConsole enables virtual terminal processing on Windows
5252 // platforms. This allows the use of ANSI escape sequences in Windows console
53 // applications. Ensure this gets called before anything gets rendered with
53 // applications. Ensure this gets called before anything gets rendered with
5454 // termenv.
5555 //
5656 // Returns the original console mode and an error if one occurred.