gpg erroring when the terminal is too small to show the ncurses pinentry dialog
Open, NormalPublic

Description

I haven't found this report yet by searching in this site for pinentry ncurses and pinetry ncurses size.

When I ask pass for a password, e.g. via pass -c path/to/password, it invokes gpg to decript a file from the password store, so gpg asks for the passphrase of the associated key. If one selects the <cancel> button and presses enter, he gets the error gpg: decryption failed: No secret key. This is imho a bit strange, but ok.

However, and here lies a bug (or at least a perceived bug), if the terminal window is too small, that error is displayed directly, without even opening the ncurses dialog box.

For a screencast of the strange behavior, please refer to my question here.

Aster89 created this task.Tue, Feb 23, 2:06 PM
werner triaged this task as Normal priority.
werner added a subscriber: werner.

Thanks for the report. Frankly the curses pinentries are not that widely tested.

As suggested in the linked question on stackexchange, I think that even if the error comes from the pinentry program, GnuPG could echo a more informative error than gpg: decryption failed: No secret key, such as terminal to little to show the pinetnry program, or something similar.