pinetry and emacs

Pankaj Jangid pankaj at codeisgreat.org
Fri Feb 12 10:55:53 CET 2021


Phillip Susi <phill at thesusis.net> writes:

>> It was pinentry-curses.  I tried switching to pinentry-tty and it rapes
>> the tty even worse than the curses one.  At least some keystrokes
>> occasionally had some effect with the curses one.  With This one nothing
>> I hit would do anything.  Couldn't get it to eventually think I entered
>> a wrong password and give up, couldn't C-c, C-g, or C-z; I just had to
>> use ~. to force ssh to hang up.  Why and how is this program so abusive
>> of the terminal?
>
> Weird... I ran strace on the program from another terminal and could see
> that it was reading each keystroke, but continued to read after seeing
> the \r.  I hit C-j ( \n ) and it finally recognized the end of input.
> I'm thinking that it requires that tty mode that appends a \n to a \r to
> be enabled, but it doesn't bother enabling it when it takes over the
> tty.

I faced the same issue when I started Emacs from virtual terminal
window. But I do not get the issue when launching from directly GUI. I
am on MacOS.



More information about the Gnupg-users mailing list