{"repo":"colored-rs/colored","free":true,"listed":false,"github":"https://github.com/colored-rs/colored","clone":"git clone https://github.com/colored-rs/colored.git","description":"(Rust) Coloring terminal so simple you already know how to do it !","language":"Rust","stars":2034,"topics":["crates","rust","terminal","colors","ansi-term","hacktoberfest"],"license":"MPL-2.0","category":"cli-tools","readme_excerpt":"Colored Coloring terminal so simple, you already know how to do it! How to use Add this in your Cargo.toml : and add this to your lib.rs or main.rs : Features - Safe rust, easy to use, minimal dependencies, complete test suite - Respect the CLICOLOR / CLICOLOR FORCE behavior (see the specs) - Respect the NO COLOR behavior (see the specs) - Do note that CLICOLOR FORCE overrules NO COLOR , which overrules CLICOLOR - Works on Linux, MacOS, and Windows (Powershell) Colors: - black - red - green - yellow - blue - magenta (or purple) - cyan - white Bright colors: prepend the color by bright . So easy. Background colors: prepend the color by on . Simple as that. Bright Background colors: prepend the color by on bright . Not hard at all. Truecolors Colored has support for truecolors where you can specify any arbitrary rgb value. This feature will only work correctly in terminals which support true colors (i.e. most modern terminals). You can check if your terminal supports true color by checking the value of the environment variable $COLORTERM on your terminal. A value of truecolor or 24bit indicates that it will work. Styles: - bold - underline - italic - dimmed - reversed - blink - hidden - strikethrough You can clear color and style anytime by using normal() or clear() Advanced Control: Dynamic color from str As Color implements FromStr , From , and From , you can easily cast a string into a color like that: Colorization control If you want to disable any coloring at compile time,","default_branch":null,"files":null,"tree":[],"storefront":"/r/colored-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/colored-rs/colored/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}