anstyle
anstyle copied to clipboard
ANSI text styling
I would expect the following (rather silly minimal case) to align columns properly: ```rust use anstream::println; use anstyle::AnsiColor; use anstyle::Reset; enum MyLogLevel { Ok, Warn, Error, } impl std::fmt::Display for...
> This is one of the major design points I tried to solve with https://docs.rs/stylish too, it completely decouples applying attributes to a string from encoding those attributes for an...
With #4, we can now use our own parser. We might need to reuse some code from `anstyle-stream` to do so.
This was split out of #5. What if `anstyle-stream` provided a way to use trucolor and have it automatically adapted to Ansi256 or Ansi16, depending on what the terminal supports?
With the updated crates and API: ```rust // I read the color flag the user specified in the cli arguments and default it for my program program.color.write_global(); // I get...
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [clap](https://redirect.github.com/clap-rs/clap) | dev-dependencies | minor | `4.3.24` -> `4.5.53` | | [codegenrs](https://redirect.github.com/crate-ci/codegenrs) |...
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [vte_generate_state_changes](https://redirect.github.com/alacritty/vte) | dev-dependencies | minor | `0.1.2` -> `0.2.0` | --- ### Release...
https://crates.io/crates/utf8parse last release is 0.2.2 , and it is no longer in the repo https://github.com/alacritty/vte I started a discussion at https://github.com/alacritty/vte/pull/122#issuecomment-2600336800 , and a maintainer there indicates there is a...
### Cargo.toml ```toml [package] name = "anstream-test" version = "0.1.0" edition = "2021" [dependencies] anstream = "0.6.18" ``` ### src/main.rs ```rust use anstream::{print, println}; fn main() { print!("\x1b[90m(print!) This text...
First commit comes from https://github.com/rust-cli/anstyle/pull/261. For `triagebot` "enhanced" log pages, it makes a HUGE difference to not have all these tags rendered (takes me more than one minute to load...