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 Libraries | |
|---|---|
| color | Go package for adding colour to terminal output |
| termenv | Advanced ANSI styling and terminal rendering for Go |
| owo_colors | Zero-allocation terminal colour library for Rust |
| Ansis | Small, fast library for styling terminal text |
| anstyle | Rust libraries for ANSI text styling |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.