-
Notifications
You must be signed in to change notification settings - Fork 129
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
Flickering screen #189
Comments
I notice this as well. It seems to be more pronounced when using arrow keys over using C-p/C-n (I tend to use the latter so didn't really notice it until you brought it up). I tried this on Alacritty and Terminal.app on MacOS |
Thank you for the suggestion! I checked it again, and I must say that the problem is gone. It was a strong flickering. Unfortunately, I am unable to reproduce it, but I suspect I had a wrong configuration for my key bindings in zsh. If someone else experiences similar problems, I am now running with autoload -U up-line-or-beginning-search
zle -N up-line-or-beginning-search
bindkey "^[[A" up-line-or-beginning-search # Up arrow
bindkey "^[OA" up-line-or-beginning-search # Up arrow
autoload -U down-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^[[B" down-line-or-beginning-search # Down arrow
bindkey "^[OB" down-line-or-beginning-search # Down arrow
bindkey "^p" up-line-or-beginning-search
bindkey "^n" down-line-or-beginning-search and the problems are gone. @casr: Can you try to configure both CTRL-p and CTRL-n the same way as your arrow keys (see my configuration above)? This should make the behavior equal and possibly solve all flickering. PS: Thanks so much again for pointing out the right direction for me. |
I checked more and I could reproduce what the problem was. I had meanwhile forgotten. Indeed, in normal applications from the terminal, I do not see any flickering. I was testing fzy as an alternative to fzf for my new plugin https://github.com/alberti42/tmux-fzf-links. I wanted to support both fuzzy search utilities. However, I realized that inside a tmux popup, it flickers a lot. See animated gif. Flickering_fzy.mp4When I replace fzy with fzf in my application, there is no flickering. |
Uff.. as you can see from the video, the flickering is pretty bad. However, when I try: tmux popup -E 'echo "Choice 1\nChoice 2\nChoice 3\nChoice 4" | fzy' there is no flickering whatsoever. So it must be something in my app, which however, does not appear with fzf. |
I've found that it is when When my terminal size is 108 columns by 50 lines and I use terminal.app (no tmux) = slight flicker Here's the recording, if helpful: Terminal.app: Screen.Recording.2025-01-11.at.11.57.02.movAlacritty: Screen.Recording.2025-01-11.at.12.02.36.movThe video script
|
Thank you for the very systematic comparison! It perfectly matches my experience. |
Wonderful utility! Thanks a lot!
I have a question whether it is normal that the screen flickers a lot when I use arrows up and down to move throught the choices. It appears that it is redrawing the entire content on the fly, and it flickers.
Is it just me? Am I missing some options to make flickering disappear?
The text was updated successfully, but these errors were encountered: