emacs-libvterm icon indicating copy to clipboard operation
emacs-libvterm copied to clipboard

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

Open leungbk opened this issue 3 years ago • 3 comments

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.

leungbk avatar Oct 28 '20 05:10 leungbk

Same issue here. Thanks for reporting.

apmanol avatar Nov 05 '20 06:11 apmanol

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.

jixiuf avatar Nov 24 '20 10:11 jixiuf

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.

KaratasFurkan avatar Aug 06 '21 12:08 KaratasFurkan