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

Windows flickers if the content being redrawn is larger than the entire screen #94

Open
bitspittle opened this issue Mar 7, 2023 · 2 comments
Assignees
Labels
bug Something isn't working OS Related to one OS specifically (probably Windows...)

Comments

@bitspittle
Copy link
Contributor

bitspittle commented Mar 7, 2023

To repro, run this on Windows (e.g. in powershell):

section {
   for (i in 0..50) { // or larger if necessary
      textLine("Line #${i + 1}")
   }
   input()
}.runUntilInputEntered()

Is there a way we can issue different commands for repainting a section to avoid this on Windows?

@bitspittle bitspittle added bug Something isn't working OS Related to one OS specifically (probably Windows...) labels Mar 7, 2023
@bitspittle
Copy link
Contributor Author

If you're a dev running into this, and this isn't fixed, try to reduce the amount of screen that can be repainted at any given moment.

@bitspittle
Copy link
Contributor Author

https://stackoverflow.com/a/48016366/1299302 looks promising.

Maybe I should at least check for LINES and COLUMNS, which can get stale if the user resizes the screen, but it's better than nothing!

@bitspittle bitspittle self-assigned this Jun 5, 2023
bitspittle added a commit that referenced this issue Jun 12, 2023
Also, fix issue with widths / heights not updating dymically.

Fixes #34
Fixes #94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working OS Related to one OS specifically (probably Windows...)
Projects
None yet
Development

No branches or pull requests

1 participant