PackageTrack
Sign in Get early access

nu-ansi-term

Library for ANSI terminal colors and styles (bold, underline)

0.50.3 486M downloads/mo #243 most downloaded on crates.io nushell/nu-ansi-term

What this package is like to depend on

Last release 10 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

5 years old

26 releases · first in 2021

1 release in the last 12 months

see the full history below

Release timeline

26 releases · Mar 2021 to Oct 2025
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 26
  1. 0.50.3 10 Oct 2025
    Release notes

    What's Changed

    New Contributors

    Full 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.

    Open source →
  2. 0.50.1 23 Jul 2024
    Release notes

    What's Changed

    Full Changelog: v0.50.0...v0.50.1

    Open source →
  3. 0.50.0 22 Jan 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v0.49.0...v0.50.0

    Open source →
  4. 0.49.0 22 Jul 2023
    Release notes

    This release attempts to fix API limitations of the previous 0.48.0 release.
    You can now again construct Style directly through its fields.

    Breaking changes

    coming from 0.47.0

    • Style has now a prefix_with_reset field to enable additional reset sequences that are introduced before setting a style.

    coming from 0.48.0

    • Style.with_reset has been renamed to Style.prefix_with_reset
    • AnsiGenericString::hyperlink() changed in signature from ...(&mut self, ...) to ...(self, ...) -> Self
    • AnsiGenericString::icon() and ::cwd() have been removed for now.

    What's Changed

    Full Changelog: v0.48.0...v0.49.0

    Open source →
  5. 0.48.0 06 Jun 2023
    Release notes

    Warning
    This release introduces an unintended breaking change for users that want to construct Style directly. (see #46 for tracking)

    New features

    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");

    Additional OSC codes:

    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.

    GNU legacy compatible output

    The new crate feature gnu_legacy will output CSI sequences which include leading zeros to be compatible with the GNU coreutils test suite

    Ability to force a reset of the style

    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().

    Other changes

    Changelog

    New Contributors

    Full Changelog: v0.47.0...v0.48.0

    Open source →
  6. 0.47.0 13 Mar 2023
    Release notes

    Breaking changes

    • Bumped minimum supported Rust version (MSRV) to 1.62.1 (@nickelc in #30)
    • Change of 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)

    Improvements and new features

    New Contributors

    Full Changelog: v0.46.0...v0.47.0

    Open source →
    Release notes

    Breaking changes

    • Bumped minimum supported Rust version (MSRV) to 1.62.1
    • Change of 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.

    Other changes

    • constification of several functions and methods.
    • Improved CI workflow.
    • Updated to Rust edition 2021.
    • Replaced winapi dependency with windows-sys.
    • Removed overload dependency.
    • Added AnsiGenericString::as_str() to allow access to the underlying string.
    • Fixed typos in README.
    • Added CHANGELOG.md for changes since forking ansi_term.
    Open source →
  7. 0.46.0 03 Jun 2022
    Release notes

    Update version in README

    Open source →
    Release notes
    • Removed impl Deref for AnsiGenericString.
    • Improved README headings.
    Open source →
  8. 0.45.1 27 Mar 2022
    Release notes
    • adds the default fg and bg as ansi escape 39 and 49

    • bump version

    Open source →
    Release notes
    • Added Color::Default enum variant with ansi codes 39 and 49 for foreground & background.
    Open source →
  9. 0.45.0 16 Mar 2022
    Release notes
    • Cleanup Cargo.toml
    • Repository reference
    • Remove obsolete entries
    • Enable doctests
    • Fix doctests

    Account for renaming of the types to follow Pascal case rules

    Open source →
    Release notes
    • Fixed examples in README.
    • Fixed typos in documentation.
    • Renamed ANSIByteStrings to AnsiByteStrings.
    • Added GitHub Actions workflow.
    • Changed authors metadata.
    • Updated license
    Open source →
  10. 0.44.0 08 Feb 2022

    Nothing published for this version

  11. 0.43.0 18 Jan 2022
    Release notes
    • Fixed clippy warning.
    Open source →
  12. 0.42.0 28 Dec 2021

    Nothing published for this version

  13. 0.41.0 07 Dec 2021

    Nothing published for this version

  14. 0.40.0 16 Nov 2021
    Release notes
    • Fixed clippy warning.
    Open source →
  15. 0.39.0 27 Oct 2021

    Nothing published for this version

  16. 0.38.0 05 Oct 2021
    Release notes
    • Removed itertools dependency.
    Open source →
  17. 0.37.0 14 Sep 2021
    Release notes
    • Fixed clippy warnings.
    Open source →
  18. 0.36.0 24 Aug 2021

    Nothing published for this version

  19. 0.35.0 03 Aug 2021

    Nothing published for this version

  20. 0.34.0 13 Jul 2021

    Nothing published for this version

  21. 0.33.0 22 Jun 2021

    Nothing published for this version

  22. 0.32.0 01 Jun 2021

    Nothing published for this version

  23. 0.31.0 11 May 2021
    Release notes
    • Implemented Default trait for Color returning Color::White.
    • Added helpers for gradients.
    • Fixed clippy warning.
    Open source →
  24. 0.30.0 21 Apr 2021
    Release notes
    • Export ansi module to expose ansi::RESET.
    Open source →
  25. 0.29.0 30 Mar 2021
    Release notes
    • Renamed Color::RGB enum variant to Color::Rgb.
    • Renamed ANSIByteString to AnsiByteString.
    • Renamed ANSIGenericString to AnsiGenericString.
    • Renamed ANSIGenericStrings to AnsiGenericStrings.
    • Renamed ANSIString to AnsiString.
    • Renamed ANSIStrings to AnsiStrings.
    Open source →
  26. 0.28.0 09 Mar 2021
    Release notes
    • Forked ansi_term as nu-ansi-term.
    • Added Nushell project contributors to the authors.
    • Updated README.md.
    • Renamed Colour to Color.
    • Renamed some files ending in colour to color.
    • Added "bright" colors ansi 90-97 (foreground) and 100-107 (background).
    • Ran cargo fmt
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive