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

Unsupported or invalid escape sequences cause an infinite loop #20

Closed gandalf3 closed 1 year ago

gandalf3 commented 2 years ago

I tried to use this crate to fix https://github.com/mrjackwills/oxker/issues/17, caused by this same bug in another similar crate (https://github.com/kurtlawrence/cansi/issues/7)

Attempting to use into_text() on a string with any escape sequence this crate doesn't explicitly support (for instance, "oops\x1b[\n") triggers an infinite loop.