Registry / cli / cppforlife-color

cppforlife-color

JSON →
library1.9.0gogounverified

An ANSI color package for outputting colorized or SGR-defined text to the standard output, with support for Windows and custom color mixes.

go get github.com/cppforlife/color
INSTALL
IMPORT
SIG · CPPFORLIFE-COLOR
C
cppforlife-color
cligov1.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

color
github.com/cppforlife/color

Prints red text to the console.

package main import ( "github.com/cppforlife/color" ) func main() { color.Red("This is red text") }
Debug
Known issues
gotchaGlobal color output may interfere with piping; use color.NoColor to disable.
fix
Set color.NoColor = true when output is not a terminal.
affects: >=1.0.0
Upgrade
Version history
1.9.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
cppforlife-color — go get cppforlife-color · libregistry