kotter
kotter copied to clipboard
Windows flickers if the content being redrawn is larger than the entire screen
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?
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.
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!