Aetf / libtsm

Terminal-emulator State Machine
Other
64 stars 24 forks source link

Fix wrong background color of new cells after resize #21

Closed aheck closed 2 years ago

aheck commented 2 years ago

If you enlarge the terminal without this fix while the alt screen is active (e.g. vim or mc is running) and return to the main screen the newly created cells on the main screen have the wrong background color.

Aetf commented 2 years ago

Thanks for the PR. Is it possible to come up with minimal code to reproduce this? Something that can be put into https://github.com/Aetf/libtsm/blob/develop/test/test_screen.c for the unit test?

aheck commented 2 years ago

I've added a unit test