Skip to content

Releases: nushell/nu-ansi-term

v0.50.1

24 Jul 21:15
Compare
Choose a tag to compare

What's Changed

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

v0.50.0

22 Jan 19:15
eaf4f5f
Compare
Choose a tag to compare

What's Changed

New Contributors

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

v0.49.0

22 Jul 21:21
eaa7d7f
Compare
Choose a tag to compare

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

v0.48.0

06 Jun 09:05
98b763f
Compare
Choose a tag to compare

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

0.47.0

13 Mar 21:27
4fdb684
Compare
Choose a tag to compare

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