Add vterm-send-password function

Borrowed from https://github.com/akermu/emacs-libvterm/issues/518
This commit is contained in:
Jeremy Dormitzer 2022-08-07 15:55:12 -04:00
parent cb5f9ec5fd
commit 86eb32a306

View File

@ -37,6 +37,11 @@
(apply orig-fun args)))
(advice-add 'consult-yank-from-kill-ring :around #'vterm-consult-yank-from-kill-ring-action)
(advice-add 'consult--insertion-preview :around #'vterm-disable-consult-preview))
(defun vterm-send-password ()
(interactive)
(comint-send-invisible "Enter password: ")
(vterm-send-string "\n")
(clear-this-command-keys))
:general
(leader-map "v" #'project-vterm)
:custom