KazDragon / terminalpp

A C++ library for interacting with ANSI terminal windows.
MIT License
75 stars 10 forks source link

Erasing parts of the terminal may leave an attribute trail #266

Closed KazDragon closed 3 years ago

KazDragon commented 3 years ago

This is apparent when changing the screen size on a Windows PuTTY terminal. Erasing a screen leaves the entire with a background of the currently-set attribute, whereas on an Ubuntu terminal window, this same operation leaves the screen with the default background.

This change applies a change to the default attribute before erasing any part of the screen.

Fixes #264


This change is Reviewable

coveralls commented 3 years ago

Coverage Status

Coverage increased (+0.03%) to 96.244% when pulling a3c1d5a3c0e3cd3f5e4c7f8154ad6e983357ae5a on screen-size-attribute-clear#264 into 509732297feab3726ae33c45869971b11570d323 on master.