kotter icon indicating copy to clipboard operation
kotter copied to clipboard

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

Open bitspittle opened this issue 2 years ago • 2 comments

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 avatar Mar 07 '23 02:03 bitspittle

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 avatar Mar 07 '23 03:03 bitspittle

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 avatar Jun 05 '23 05:06 bitspittle