ndreynolds / ratatouille

A TUI (terminal UI) kit for Elixir
MIT License
752 stars 39 forks source link

Only write changed cells to the terminal #28

Open rikkus opened 3 years ago

rikkus commented 3 years ago

This is a quick hack to keep track of what we wrote to which cell - and avoid writing it again if there's no difference. It's broken in that a resize doesn't clear and re-render, as I couldn't figure out the way the design worked enough to get that to happen. Just thought you'd like to see this as an idea, as I know you had 'diffing' or similar on the roadmap and this might be a possible route to making that work without getting complicated.