-
-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
screen.Clear() sets background color to last used style in v2.5.0 #522
Comments
Stepping through the program with a debugger, I see that when Maybe something like this would help?
|
This also seems to restore the old behavior:
I think |
Use the private fork aretext/tcell that contains a fix for clearing the screen. Related to gdamore/tcell#522
Well dug, @wedaly! I'm seeing this exact same problem and have resorted to using |
This is fixed in #523 I'll create a patch release today to get this out. |
In tcell v2.4.0, the following program clears the screen back to the default background color. In tcell v2.5.0, the program clears the screen to the last used style in
screen.SetContent()
Here's a program that reproduces the issue:
I was able to reproduce the issue in:
Git bisecting shows 62f5502 as the commit that introduced the change in behavior.
Is this a regression? Or am I using SetContent / Clear / Show incorrectly?
(Thanks again for maintaining this project. I've been a happy user for several years now!)
The text was updated successfully, but these errors were encountered: