An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/mdm-code/termcols

Package termcols implements ANSI color codes that can be used to color text on the terminal. Different styles and foreground/background colors can be chained together through an intuitive package API to arrive at some cool visual effects. The selection of style and color control sequences implemented by the package was largely based on an exhaustive list of Select Graphic Rendition (SGR) control sequences available at Wikipedia ANSI. It is a great resource in case one or more elements appear not to be supported in a given terminal. The Escape sequence for termcols is set to \033, which means that it should work without any issues with Bash, Zsh or Dash. Other shells might not support it. The same applies to 8-bit and 24-bit colors: there is no guarantee that these escape sequences are supported will be rendered properly on some terminals. Results may vary, so it is good practice to test it first for compatibility. The package has two public functions MapColor and MapColors that accept string values to try and map it onto a valid SgrAttr, however, it has been made implemented to simplify the terminal tcols command.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mdm-code/termcols
Keywords: cli , color , colorized , colors , go , golang , rgb , rgb24 , rgb8 , terminal , unix
License: MIT
Latest release: about 1 year ago
First release: over 2 years ago
Namespace: github.com/mdm-code
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 9 days ago