Closed karcsesz closed 1 year ago
Hey, ratatui is the actively maintained fork of tui-rs
. If you are interested, feel free to submit this PR to there as well. Cheers!
Thanks @orhun! I've ported my project over, and will see if there's a more elegant way to achieve this functionality. It is a bit of an ugly bodge.
Description
Adds some new functions to
Cell
,Buffer
, andTerminal
that when called marks a given object dirty, meaning their current state on the terminal is unknown, so they should be repainted the next timedraw()
is called.Uses a given cell's
.symbol
being empty as a "dirty" marker. Not sure how proper this is for an implementation, but it seems to work well.Testing guidelines
I've added some tests to
tests/terminal.rs
Checklist