I’ll spare you the details about what is GPG and how its used since there is little to no chance you might have stumbled upon this post if you didn’t know anything so far except how to fix the following error: Screen or window too small

the solution

First and foremost try to resize, maximize your terminal window. If that doesn’t work try to run the following commands:

gpgconf --kill gpg-agent
gpgconf --launch gpg-agent

bottom line

That’s it. Sometimes the GPG agent just needs a restart.

Shameless plug: Check out justanotheruptime.com if you’re looking for a monitoring solution to catch when things break from time to time.