Closed abishekvashok closed 3 years ago
I'm still seeing a single line of block characters on the bottom row of my terminal emulator when I quickly shrink the window. However, it is certainly much better than before, where the blocks covered the entire terminal window in vertical lines. I'm using Xterm on Debian.
I'm still seeing a single line of block characters on the bottom row of my terminal emulator when I quickly shrink the window. However, it is certainly much better than before, where the blocks covered the entire terminal window in vertical lines. I'm using Xterm on Debian.
Better isn't something we want, so I peered in deeper and found out that non-printable characters were being fed to ncurses, fixed it this time :) [the head on the other hand seemed to suppress it a bit]
I've updated the PR now @StavromulaBeta, can you make sure it works on your end?
I don't like to self merge without reviews, but seems like it would take some time and it works on some machines I had access to. So doing it :D
This lead to unintended consequences as random block of characters appeared on resizing when we tried to pass non printable -1 to addch. Introduces a simple if statement to fix it.
Here's a gif: