Releases: nushell/nu-ansi-term
v0.50.1
v0.50.0
What's Changed
- Rename the LICENCE file to LICENSE by @newpavlov in #51
- gnu_legacy: with GNU, write foreground first, else background first. by @sylvestre in #54
- Bump to 0.50 by @kubouch in #56
New Contributors
- @newpavlov made their first contribution in #51
- @sylvestre made their first contribution in #54
- @kubouch made their first contribution in #56
Full Changelog: v0.49.0...v0.50.0
v0.49.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.
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 toStyle.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
- Fix Re-enabling manual Style creation by @mhelsley in #47
- Use chaining for
AnsiGenericString::hyperlink
by @sholderbach in #48 - Make
Style.with_reset
more explicit asprefix_with_reset
by @sholderbach in #50 - Bump version for 0.49 release by @sholderbach in #49
Full Changelog: v0.48.0...v0.49.0
v0.48.0
Warning
This release introduces an unintended breaking change for users that want to constructStyle
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
- Unit tests update by @jaudiger in #34
- Quick fix around doc tests regarding Color::prefix(). by @jaudiger in #35
- Remove useless macro #[allow(dead_code)] by @jaudiger in #37
- Update
windows-sys
to 0.48 by @nickelc in #38 - Add feature: gnu_legacy mode for ansi styles by @alexkunde in #39
- Add resetted styling by @alexkunde in #40
- update dependencies by @fdncred in #42
- Add support for hyperlinks and other OSC codes by @mhelsley in #43
- Revert removal of the patch versions by @sholderbach in #44
New Contributors
- @alexkunde made their first contribution in #39
- @mhelsley made their first contribution in #43
Full Changelog: v0.47.0...v0.48.0
0.47.0
Breaking changes
- Bumped minimum supported Rust version (MSRV) to 1.62.1 (@nickelc in #30)
- Change of
Color::default()
value to the ANSI default colorColor::Default
(code39
and49
for foreground and background respectively). This replacesColor::White
as the default value. (@jaudiger in #29)
Improvements and new features
const
ification of several functions and methods. (@jaudiger in #22)- Added
AnsiGenericString::as_str()
to allow access to the underlying string. (@rhzx86 in #12) - Replaced
winapi
dependency withwindows-sys
(@kgrech in #16, @nickelc in #19) - Removed
overload
dependency and implement the provided operators forRgb
manually (@nickelc in #13) - Updated to Rust edition 2021. (@jaudiger in #21)
- Improved CI workflow. (@nickelc in #18, #17, and #26)
- Fixed several mistakes in README. (@j16r, @bwinchester, @sourcefrog)
- Added
CHANGELOG.md
for changes since forkingansi_term
. (@fdncred, @nickelc, @sholderbach)
New Contributors
- @j16r made their first contribution in #10
- @bwinchester made their first contribution in #11
- @rhzx86 made their first contribution in #12
- @nickelc made their first contribution in #13
- @sourcefrog made their first contribution in #15
- @kgrech made their first contribution in #16
- @jaudiger made their first contribution in #21
Full Changelog: v0.46.0...v0.47.0