#ansi-term #terminal-colors #style #ansi-colors #bold #underline #styling

procr_ansi_term

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

3 unstable releases

0.2.2 Oct 13, 2023
0.2.1 Oct 13, 2023
0.2.0 Oct 13, 2023
0.1.0 Oct 12, 2023

#1074 in Command-line interface

22 downloads per month

MIT/Apache

145KB
2.5K SLoC

procr-ansi-term

Documentation

What is this crate useful for?

Styling data that will be eventually rendered by a terminal capable of interpreting ANSI style codes.

Should I use this crate?

Short answer: no. owo_colors does everything this crate does, but more rationally, and more effectively.

History

nu-ansi-term is used by tracing_subscriber (for what may be considered historical reasons), and was a copy of ansi_term but with Colour changed to Color and various colors added. procr-ansi-term, born in a time when I didn't know better, adds functionality to nu-ansi-term which allows ANSI formatting of format_args!, and also allows various ANSI strings/format args to be nested in styling, with a primitive parent-child inheritance of said styling.

Dependencies

~4–17MB
~174K SLoC