Skip to content
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

Send AttrOff when clearing the screen #523

Merged
merged 1 commit into from Apr 16, 2022

Commits on Apr 8, 2022

  1. Send AttrOff when clearing the screen

    In tcell v2.4, the following calls would reset the screen
    to its default color:
    
    1. SetContent() to change the bg color to maroon.
    2. Clear()
    3. Show()
    
    In tcell v2.5, the behavior changed to clear the screen
    to the last-used style passed to SetContent.
    
    This happens because commit 62f5502 set the dirty flag
    to false for all cells, on the assumption that sending
    ti.Clear would clear the cells anyway. Unlike the drawCell
    calls triggered by the dirty flag, however, clearScreen
    does not send AttrOff. This causes the screen to clear
    to the last-used background color.
    wedaly committed Apr 8, 2022
    Copy the full SHA
    46e6a27 View commit details
    Browse the repository at this point in the history