Top 1.0% dependent packages on proxy.golang.org
Top 0.5% dependent repos on proxy.golang.org
Top 9.8% forks on proxy.golang.org
Top 0.7% docker downloads on proxy.golang.org
proxy.golang.org : github.com/cockroachdb/ttycolor
Package color is a lightweight terminal color library. It is only compatible with terminals which support ANSI escape codes. The API exposes two programming styles. You can use functions that print the color escape sequences directly to the output stream: Or, you can retrieve the color escape sequence by directly looking up a color.Code in a color.Profile: Text destined for stderr should use color.Stderr and color.StderrProfile instead. When the output stream is not a character device, or the TERM environment variable indicates an unsupported terminal type, functions will print nothing or return a nil byte slice. While we link the main CockroachDB binary against libncurses or libterminfo, which bundle information about nearly every terminal ever produced, handling colors for non-ANSI terminals is no small task. See, for example, the difference between the setaf (set ANSI foreground) and setf (set foreground) capabilities. Since non-ANSI terminals are few and far between, it's not worth the trouble.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/cockroachdb/ttycolor
License: Apache-2.0
Latest release: over 3 years ago
First release: almost 7 years ago
Namespace: github.com/cockroachdb
Dependent packages: 27
Dependent repositories: 125
Stars: 1 on GitHub
Forks: 3 on GitHub
Docker dependents: 11
Docker downloads: 207,600
See more repository details: repos.ecosyste.ms
Last synced: 4 days ago