You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a password manager it's practice to copy the password from the manager and then paste into the place where it's needed, like a prompt in a terminal program of some sort. For a long time this has not worked for me in vterm and I have boiled it down to it's components.
How to reproduce:
emacs -q
Paste this code into *scratch* and use eval-region
(package-initialize)
(require'use-package)
(use-package vterm)
(setq vterm-timer-delay nil) ;; <-- the problematic line
Now, open up a vterm terminal with M-x vterm RET
Use this bash line to create a prompt
bash -c 'read -s -p "Password: " pwd; echo $pwd;'
If you want to double-check, try to type something and then hitting RET to make sure it works.
Next, try to paste something, and paste is correctly bound to vterm-yank. Then (before I hit RET, just the yank), my emacs locks up completely, reacting to nothing exceptC-g. When C-g is hit, I can hit RET and get my password through.
This only happens when vterm-timer-delay is set to nil.
Emacs version: GNU Emacs 29.3 (build 2, aarch64-apple-darwin23.2.0, NS appkit-2487.30 Version 14.2.1 (Build 23C71)) of 2024-04-03 (if I remember correctly, I've had this issue since at least 28).
Vterm version: 20240325.1551
All the best!
The text was updated successfully, but these errors were encountered:
Hello!
When using a password manager it's practice to copy the password from the manager and then paste into the place where it's needed, like a prompt in a terminal program of some sort. For a long time this has not worked for me in
vterm
and I have boiled it down to it's components.How to reproduce:
Paste this code into
*scratch*
and useeval-region
Now, open up a vterm terminal with
M-x vterm RET
Use this bash line to create a prompt
If you want to double-check, try to type something and then hitting
RET
to make sure it works.Next, try to paste something, and paste is correctly bound to
vterm-yank
. Then (before I hitRET
, just theyank
), my emacs locks up completely, reacting to nothing exceptC-g
. WhenC-g
is hit, I can hitRET
and get my password through.This only happens when
vterm-timer-delay
is set tonil
.Emacs version:
GNU Emacs 29.3 (build 2, aarch64-apple-darwin23.2.0, NS appkit-2487.30 Version 14.2.1 (Build 23C71)) of 2024-04-03
(if I remember correctly, I've had this issue since at least 28).Vterm version:
20240325.1551
All the best!
The text was updated successfully, but these errors were encountered: