Skip to content

Commit

Permalink
Add documentation about EnvColorProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Feb 6, 2022
1 parent ce3deab commit 662a4e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -48,6 +48,10 @@ This returns one of the supported color profiles:
- `termenv.ANSI256` - Extended 256 color ANSI support
- `termenv.TrueColor` - RGB/TrueColor support

Alternatively, you can use `termenv.EnvColorProfile` which evaluates the
terminal like `ColorProfile`, but also respects the `NO_COLOR` and
`CLICOLOR_FORCE` environment variables.

You can also query the terminal for its color scheme, so you know whether your
app is running in a light- or dark-themed environment:

Expand Down
2 changes: 1 addition & 1 deletion termenv_windows.go
Expand Up @@ -51,7 +51,7 @@ func backgroundColor() Color {

// EnableWindowsANSIConsole enables virtual terminal processing on Windows
// platforms. This allows the use of ANSI escape sequences in Windows console
// applications. Ensure this gets called before anything gets rendered with
// applications. Ensure this gets called before anything gets rendered with
// termenv.
//
// Returns the original console mode and an error if one occurred.
Expand Down

0 comments on commit 662a4e4

Please sign in to comment.