ratatui / ansi-to-tui

Convert ansi colored text to tui::text::Text
https://crates.io/crates/ansi-to-tui
MIT License
57 stars 21 forks source link

Update to Ratatui 0.21 #31

Closed joshka closed 1 year ago

joshka commented 1 year ago

Cargo.toml is updated to specify 0.21 rather than 0.* as 0.21 deprecates the Spans type and replaces it with Line. This is generally a good thing as it makes the code more readable and easier to use.

A bunch of tests are updated to use the new Line type and are simplified to use the Text::raw / Text::styled functions rather than constructing the Spans type directly.

uttarayan21 commented 1 year ago

Thank you for the pr.