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

Calling SendViaOSC52 Causes Terminal to Flicker #3

Open
MagnusBrzenk opened this issue Sep 2, 2020 · 4 comments
Open

Calling SendViaOSC52 Causes Terminal to Flicker #3

MagnusBrzenk opened this issue Sep 2, 2020 · 4 comments

Comments

@MagnusBrzenk
Copy link

Thanks for this awesome plugin! After trying X11-forwarding, and other attempts at OSC52, this is the first that seems to really work well across different platforms.

The only question I have concerns the way it causes my terminal to flicker. I had hoped to include it in every yank, but that's not viable because it causes a big flicker each time. Not a massive deal, but if there's an easy fix then that would be appreciated.

@fcpg
Copy link
Owner

fcpg commented Sep 3, 2020

Thanks! Try setting lazyredraw in vim and see if it helps. If does not, it might just be terminal-dependent.

@fcpg
Copy link
Owner

fcpg commented Sep 19, 2020

Hello,

I have just pushed a commit that should prevent the flicker; let me know if it works for you too, and I'll close the issue.

@MagnusBrzenk
Copy link
Author

MagnusBrzenk commented Sep 19, 2020

I tried it just now ssh-ing into an AWS microVM (Ubuntu 18) with Vim 8.2 in iTerm2 and, unfortunately, it causes my screen to blank. Here is a screen recording of me doing a simple yank on the relevant lines in my .vimrc

vim-blank

Let me know if there's any debug info I might send to help figure out what's happening here.

Edit: Note: I also tried it just now on my MacBookPro and got the same behavior.

@fcpg
Copy link
Owner

fcpg commented Sep 19, 2020

Pushed another commit that adds two options:

  • g:osc52_print: can be 'echo' (default), 'printf' or a vim expression to which the osc52 sequence will be appended;
  • g:osc52_redraw: can be 2 (default: erase and redraw, causes flicker), 1 (redraw without erasing) or 0 (no redraw).

Try tinkering with both options. On my side, I use g:osc52_print = 'print' and g:osc52_redraw = 0, on minTTY and tmux, without issue nor flicker. It is probably very much terminal-dependent.

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

No branches or pull requests

2 participants