- Added methods
ansi_colorandon_ansi_colortoColorize.
- [BREAKING CHANGE]: Upgrade MSRV to 1.80 and remove the then unnecessary lazy_static dependency.
- Updated top-level docs to include a note about
ColoredString's role in theColorizepipeline as well as link to it to suggest learning more about how to manipulate existingColoredString's. - Changes to
ColoredString:- Expose fields.
- [DEPRECATION]: Deprecated methods
fgcolor,bgcolor, andstyledue to their obsolescence in the face of the exposing of their represented fields. - Add methods for clearing specific elements of
fgcolor,bgcolor, andstyle. - Change Default implementation to be via derive as Style now implements Default (see changes to Style below).
- Add implementation of
DerefMut. - Updated docs to reflect the above changes as well as generally greatly expand them.
- Changes to
Style:- Implemented
DefaultforStyle(returnsCLEAR). This exposes a method by which users can create plainStyle's from scratch. - Implemented
From<Styles>forStyle. This lets users easily createStyle's from specific styles. - Exposed previously private method
add. - Created method
removewhich essentially does the opposite. - Added builder-style methods in the vein of
Colorizeto add stylings (e.g.bold,underline,italic,strikethrough). - Implemented bitwise operators
BitAnd,BitOr,BitXor, andNotas well as their representative assignment operators. You can also use aStylesas an operand for these. - Implemented
FromIterator<Styles>for Style.
- Implemented
- Changes to
Styles:- Implemented bitwise operators
BitAnd,BitOr,BitXor, andNotwhich all combineStyles's and outputStyle's. These can also take aStyleas an operand.
- Implemented bitwise operators
- Added additional testing for all of the above changes.
- Added methods
with_styleandwith_color_and_styletoColorize.
- Impl From for ColoredString by @mahor1221 in #126
- Allow conversion from ColoredString to Error by @spenserblack in #86
- Suggestion for minor documentation clarification by @jonasbn in #98
- Remove unnecessary is_terminal dependency by @Oakchris1955 in #149
- Document crate MSRV of
1.70.
- Document crate MSRV of
- Switch from
winapitowindows-sys.
- Document crate MSRV of
1.63.
- Fix typo in
src/control.rs. - Replace
attydependency withis-terminal.
- Add edition for future compatibility.
- Implement custom colors that can be stored in a variable.
- Add support for true colours.
- Alter
Colorinterface to returnCow<'static, str>
- Fix compilation regression for 1.34.0. Thanks @jlevon for reporting.
- Exposed
ColoredStringdata through methods for purposes of interrogating the applied colours. - Increased documentation.
- Remove deprecated
try!macro in codebase - Reduce allocations in
ColoredStringimpl (PR#65) - Added
"purple"as match inimpl FromStr for Color(PR#71)
- [POSSIBLE_BREAKING CHANGE]: Replace
winconsolewithwinapi:- Changes
set_virtual_terminalfunction signature.
- Changes
- Update dependencies
- Add Dockerfile
- Respect tty discovery for CLICOLOR
- FEAT: support Windows 10 colors
- TECH: update lazy_static
- FEAT: introduce respect for the
NO_COLORenvironment variable
- TECH: update lazy_static
- CHORE: fix typos in README and documentation
- FEAT: introduced bright colors.
"hello".bright_blue().on_bright_red(); - FEAT: introduced strikethrough styling.
"hello".strikethrough();
- FEAT: derive Copy and Clone for
Color - FEAT: derive Clone for
ColoredString
- FIX: method
Colorize::reversedhas been added.Colorize::reversewas a typo, that we will keep for compatibility
- Update lazy_static to 0.2.
- FEAT: support for
"hello".color("blue")(dynamic colors)
- FIX: usage of nested ColoredString again, no more style broken mid-line
- FIX: usage of ColoredString in a nested way broke the styling mid-line
- Provide various options for disabling the coloring in an API-compatible way
- Support the different formatting options, like padding and alignment
- Respect the CLICOLOR/CLICOLOR_FORCE behavior. See this specs
- Add a CHANGLOG
- Fix crate dependencies: move
ansi_termin dev_dependencies
- Initial release