All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
2.1.0 - 2024-06-10
- Add support for Windows 10 and greater.
- Add support for
TERM
environment variable: if set todumb
disables coloured output, if set to any other value enables coloured output.NO_COLOR
CLICOLOR_FORCE
both override this behaviour. - Add changelog.
2.0.0 - 2024-05-13
- Add support for
std::fmt::Formatter
inwrite_
macros. - Environment variable
NO_COLOR
if set to any non-empty value will cause colouring to be disabled as recommended in no-color.org and Standard for ANSI Colors in Terminals. - Environment variable
CLICOLOR_FORCE
if set to any non-empty value will cause colouring to be enabled as recommended in Standard for ANSI Colors in Terminals.NO_COLOR
overridesCLICOLOR_FORCE
. - If neither of the above environment variables are set to a non-empty value,
colouring will only be enabled if
stdout
is detected to be a terminal or tty. - Add
force_colour
function to force coloured output, regardless of environment variables or terminal detection. - Add
force_no_colour
function to disable coloured output, regardless of environment variables or terminal detection. - Add
force_color
andforce_no_color
as aliases for above functions to accommodateincorrectUS spelling. - Add
gray_
macros, equivalent togrey_
ones to accommodatewrongUS spelling. - Specify minimum supported Rust version as 1.70.0.
- Add examples.
- Remove dependency on
crossterm
, breaking Windows support, sincecrossterm
cannot support writing usingstd::fmt::Formatter
.
1.1.0 - 2024-04-29
- Avoid consuming writer in
write_
macros.
1.0.0 - 2024-04-28
- Provide coloured write macros, similar to
write!
from the Standard Library. - Add Cargo.lock to repo.
- Update
crossterm
version.
0.7.0 - 2023-03-02
- Refactor macro implementation to use a higher level macro to generate the individual public macros.
- Update to edition 2021.
- Update
crossterm
version.
0.6.0 - 2021-03-15
- Change to MIT and Apache 2.0 licenses.
- Enable
clippy::pedantic
warnings. - Update
crossterm
version.
0.5.0 - 2020-03-18
- Add macros prefixed with
e_
for writing tostderr
.
0.4.0 - 2020-02-25
- Swap
term
crate forcrossterm
. - Renamed
dark_white
macros togrey
in line withcrossterm
naming. - Renamed
dark_black
macros toblack
in line withcrossterm
naming. - Renamed
black
macros todark_grey
in line withcrossterm
naming.
0.3.1 - 2020-02-25
- Update
term
version. - Update formatting options.
0.3.0 - 2019-04-12
- Update
lazy_static
version. - Update
term
version.
0.2.1 - 2018-02-01
- Update
lazy_static
version.
0.2.0 - 2017-04-09
- Add
allow(useless_format)
to disable Clippy lint.
0.1.0 - 2017-04-09
- Initial set of coloured macros.