emacs-libvterm
emacs-libvterm copied to clipboard
Flickering occurs in vterm when hl-line-mode is on
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.
Same issue here. Thanks for reporting.
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.
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.