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

Reduce flickering #132

Closed
wants to merge 1 commit into from
Closed

Reduce flickering #132

wants to merge 1 commit into from

Conversation

calleluks
Copy link
Collaborator

The clearing of the screen introduced in 72239f0 made the screen flicker
for users in tmux. Possibly because tmux might take longer time to draw
than terminal emulators.

Instead of clearing the whole screen before printing the choices and
query, clear from the line below the last choice to the end of the
screen before printing the query. This only can and needs to be done if
the visible choices and the query do not completely fill the screen.

This might resolve #131.

The clearing of the screen introduced in 72239f0 made the screen flicker
for users in tmux. Possibly because tmux might take longer time to draw
than terminal emulators.

Instead of clearing the whole screen before printing the choices and
query, clear from the line below the last choice to the end of the
screen before printing the query. This only can and needs to be done if
the visible choices and the query do not completely fill the screen.
@calleluks
Copy link
Collaborator Author

@mptre how does this look to you?

@mptre
Copy link
Owner

mptre commented Jun 10, 2016

This change breaks the output when not using the alternate screen and
the terminal needs to scroll in order fit all choices unfortunately.

@calleluks
Copy link
Collaborator Author

Oh yeah, thanks for noticing that @mptre! Let's close this in favor of #133.

@calleluks calleluks closed this Jun 14, 2016
@calleluks calleluks deleted the no-flicker branch June 30, 2016 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visual regression in 1.4
2 participants