I was was using gpg --gen-key till I got to enter the passphrase where I get:

│ Please enter Passphrase,                             │
│                                                      │
│ Passphrase: ________________________________________ │
│                                                      │
│       <OK>                            <Cancel>       │

After some digging I found out this came from gpg-agent which in turn uses pinentry.

All I can do here is enter passphrase (which works fine) and press tab, which makes the blinking cursor disappear. But how to I select <ok> or <cancel> in pinentry?

gpg was installed on osx via brew

When I try CTL+C I get: gpg: signal Interrupt caught ... exiting but can still continue typing a passphrase.


With the cursor in the PIN entry area, pressing Enter will activate the “OK” button.

Pressing Tab will highlight the “OK” button and then the “Cancel” button; pressing Enter with a button hightlighted will activate that button.

  • Esc does nothing here. – invad0r Jan 23 '18 at 16:16
  • Tested pressing Tab on ubuntu which worked fine highlighting ok and cancel. Doesn't show highlighting on osx, but works ! Thanks – invad0r Jan 24 '18 at 8:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.