owo-colors is a zero-allocation Rust library for adding colours and text styling to terminal output. It is compatible with no_std environments and imposes no dependencies by default.
The library supports standard ANSI colours, 256-colour terminals and RGB true colour. Colours can be selected at compile time through generic types or dynamically at runtime.
This is free and open source software.
Key Features
- Adds foreground and background colours to terminal output.
- Supports standard ANSI colours, bright variants, 256-colour terminals and RGB true colour.
- Provides text styles including bold, underline and strikethrough.
- Works with all standard Rust formatting traits.
- Offers zero-allocation and
no_std-compatible operation. - Requires no dependencies with its default configuration.
- Allows colours to be selected statically with generic types or dynamically at runtime.
- Can detect whether a terminal supports colour.
- Honours the
NO_COLORandFORCE_COLORenvironment variables. - Allows colour support to be overridden programmatically.
- Uses entirely safe Rust code.
Website: github.com/owo-colors/owo-colors
Support:
Developer: jam1garner
License: MIT License
owo-colors is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Terminal String Styling Tools | |
|---|---|
| Rich | Python library for rich text and beautiful formatting |
| Chalk | Bills itself as “Terminal string styling done right” |
| picocolors | Tiny and fast library for terminal output formatting |
| yoctocolors | Small and fast command-line coloring package |
| yachalk | Clone of Chalk written in Python |
| kleur | Node.js library for formatting terminal text with ANSI colors |
| colorette | Set your terminal text color and styles |
| sty | String styling for your terminal |
| termcolor | ANSI color formatting for output in the terminal |
| colored | Simple Python library for color and formatting in terminal |
| ansicolors | ANSI colors for Python |
| ansi-colors | Add ANSI colors to terminal text |
Read our verdict in the software roundup.
Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more. Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form. |


Please read our Comment Policy before commenting.