NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #237 most downloaded on crates.io
Library for ANSI terminal colors and styles (bold, underline)
Last release 12 months ago
10 Oct 2025
Release timing varies
gaps range from 2 weeks to 1.2 years
Most releases are documented
notes for 17 of 26 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
26 releases · first in 2021
One column per quarter.
fix clippy doc warning by @fdncred in #68
no-std works via CI by @cptpiepmatz in #70Full Changelog: v0.50.1...v0.50.3
There's no v0.50.2, someone external bumped the patch version in a PR causing us to skip a version by accident.
Remove unused import by @nickelc in #63
Full Changelog: v0.50.0...v0.50.1
Rename the LICENCE file to LICENSE by @newpavlov in #51
Full Changelog: v0.49.0...v0.50.0
This release attempts to fix API limitations of the previous 0.48.0 release. You can now again construct Style directly through its fields.
This release attempts to fix API limitations of the previous 0.48.0 release.
You can now again construct Style directly through its fields.
0.47.0prefix_with_reset field to enable additional reset sequences that are introduced before setting a style.0.48.0Style.with_reset has been renamed to Style.prefix_with_resetAnsiGenericString::hyperlink() changed in signature from ...(&mut self, ...) to ...(self, ...) -> SelfAnsiGenericString::icon() and ::cwd() have been removed for now.AnsiGenericString::hyperlink by @sholderbach in #48Style.with_reset more explicit as prefix_with_reset by @sholderbach in #50Full Changelog: v0.48.0...v0.49.0
Warning This release introduces an unintended breaking change for users that want to construct Style directly. (see #46 for tracking)
Warning
This release introduces an unintended breaking change for users that want to constructStyledirectly. (see #46 for tracking)
This release introduces support to express several OSC control codes by calling methods on AnsiGenericString. Primarily you can now mark particular text with a hyperlink by calling .hyperlink() on it.
use nu_ansi_term::AnsiString;
let link_string = AnsiString::from("Learn more about this crate!").hyperlink("https://docs.rs/nu-ansi-term");Note
If these features are usable depends on the terminal emulator.
AnsiString::title() to set the title bar of the terminal emulator.AnsiString::cwd() to inform the terminal about changes to the working directory.AnsiString::icon() to supply an icon that the terminal may use for the application.The new crate feature gnu_legacy will output CSI sequences which include leading zeros to be compatible with the GNU coreutils test suite
nu-ansi-term strives to only output the ANSI sequences necessary to express the desired style. In some situation it may be beneficial to force the terminal emulator to reset its internal style before applying a new style.
To do so you can now use Style.reset_before_style().
windows-sys to 0.48 by @nickelc in #38Full Changelog: v0.47.0...v0.48.0
Bumped minimum supported Rust version (MSRV) to 1.62.1 ( @nickelc in #30 )
Color::default() value to the ANSI default color Color::Default (code 39 and 49 for foreground and background respectively). This replaces Color::White as the default value. (@jaudiger in #29)constification of several functions and methods. (@jaudiger in #22)AnsiGenericString::as_str() to allow access to the underlying string. (@rhzx86 in #12)winapi dependency with windows-sys (@kgrech in #16, @nickelc in #19)overload dependency and implement the provided operators for Rgb manually (@nickelc in #13)CHANGELOG.md for changes since forking ansi_term. (@fdncred, @nickelc, @sholderbach)Full Changelog: v0.46.0...v0.47.0
Color::default() value to the ANSI default color Color::Default (code 39 and 49 for foreground and background respectively). This replaces Color::White as the default value.constification of several functions and methods.winapi dependency with windows-sys.overload dependency.AnsiGenericString::as_str() to allow access to the underlying string.CHANGELOG.md for changes since forking ansi_term.Update version in README
Update version in README
impl Deref for AnsiGenericString.adds the default fg and bg as ansi escape 39 and 49
adds the default fg and bg as ansi escape 39 and 49
bump version
Color::Default enum variant with ansi codes 39 and 49 for foreground & background.Account for renaming of the types to follow Pascal case rules
Account for renaming of the types to follow Pascal case rules
ANSIByteStrings to AnsiByteStrings.Nothing published for this version
- Fixed clippy warning.
Nothing published for this version
Nothing published for this version
- Fixed clippy warning.
Nothing published for this version
- Removed itertools dependency.
itertools dependency.- Fixed clippy warnings.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Implemented Default trait for Color returning Color::White.
Default trait for Color returning Color::White.Export ansi module to expose ansi::RESET.
ansi module to expose ansi::RESET.Renamed Color::RGB enum variant to Color::Rgb.
Color::RGB enum variant to Color::Rgb.ANSIByteString to AnsiByteString.ANSIGenericString to AnsiGenericString.ANSIGenericStrings to AnsiGenericStrings.ANSIString to AnsiString.ANSIStrings to AnsiStrings.Forked ansi_term as nu-ansi-term.
ansi_term as nu-ansi-term.Colour to Color.colour to color.Your coding agent can read these notes before it upgrades. Set up the MCP server →