Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dirty "regions" instead of dirty lines? #172

Open
davidbrochart opened this issue Jan 1, 2024 · 1 comment
Open

Dirty "regions" instead of dirty lines? #172

davidbrochart opened this issue Jan 1, 2024 · 1 comment

Comments

@davidbrochart
Copy link
Contributor

The dirty screen attribute is a set of line numbers which should be re-drawn. I'm using pyte in a Textual application where one can decide to update a region, where a Region is a rectangle.
I can of course say that for each dirty line corresponds a dirty region that has the width of the screen and a height of 1, but it would be more optimal if I knew what (segments of) characters are dirty inside each dirty line. I'm wondering if pyte could have something similar, i.e. dirty regions instead of just dirty lines?

@superbobry
Copy link
Collaborator

Yeah, you can fork DiffScreen and implement your own version tracking dirty regions. IIRC we went with lines because it was simpler and sufficient for our use-cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants