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

Flickering occurs in vterm when hl-line-mode is on #432

Open
leungbk opened this issue Oct 28, 2020 · 3 comments
Open

Flickering occurs in vterm when hl-line-mode is on #432

leungbk opened this issue Oct 28, 2020 · 3 comments

Comments

@leungbk
Copy link

leungbk commented Oct 28, 2020

Inputting text into the vterm prompt when hl-line-mode is on causes the highlighted line to flicker. I can live with turning off hl-line-mode in vterm, but it would be nice if I could keep it on.

@apmanol
Copy link

apmanol commented Nov 5, 2020

Same issue here. Thanks for reporting.

@jixiuf
Copy link
Collaborator

jixiuf commented Nov 24, 2020

It's not easy to support hl-line-mode for vterm now, the screen is refreshed line by line, that means it delete the old line then insert a new line when you inputting text.

@KaratasFurkan
Copy link

KaratasFurkan commented Aug 6, 2021

I use this hack to activate hl-line only in vterm-copy-mode:

(add-hook 'vterm-mode (lambda () (setq-local global-hl-line-mode nil)))
(add-hook 'vterm-copy-mode (lambda () (call-interactively 'hl-line-mode)))

Note: i have (global-hl-line-mode) in my init.

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

4 participants