rust-cli / anstyle

ANSI text styling
https://docs.rs/anstyle
Other
106 stars 16 forks source link

Using `anstream` in tandem with Rust 1.70's `std::io::IsTerminal` trait #109

Closed mataha closed 1 year ago

mataha commented 1 year ago

Rust 1.70 introduced the IsTerminal trait and with it is_terminal() method.

Can it be used in anstream in place of is-terminal (as anstream depends on std already), or is that a no-go due to IsTerminal being sealed? (This would bump the MSRV of course, which is another potential concern.)

epage commented 1 year ago

We'll have to rework some things but we plan to switch when 1.72 is out

mataha commented 1 year ago

anstream 0.5.0 does this, thanks!