In mutt-users, the thread under "mutt-1.5.23_9 && gnupg-2.1.6"
<20151223070426.GA2322@c720-r285885-amd64>, Matthias and Will reported
some display issues when viewing encrypted message.  Matthias was trying
to use pinentry-tty.  Since mutt doesn't endwin() the tty-mode prompt
wasn't working properly.

Will reported seeing a few artifacts using pinentry-curses.  I haven't
duplicated them, but perhaps I need to update to gpg 2.1 to see them.

The most obvious solution may be to add an endwin when about to display
encrypted messages (sample patch below).  However, this creates an
annoying flicker when viewing encrypted messages.  Is there another way
to go about this?  I could use some ideas.


--- a/commands.c
+++ b/commands.c
@@ -77,16 +77,18 @@
   {
     if (cur->security & ENCRYPT)
     {
       if (cur->security & APPLICATION_SMIME)
        crypt_smime_getkeys (cur->env);
       if(!crypt_valid_passphrase(cur->security))
        return 0;
 
+      mutt_endwin (NULL);
+
       cmflags |= M_CM_VERIFY;
     }
     else if (cur->security & SIGN)
     {
       /* find out whether or not the verify signature */
       if (query_quadoption (OPT_VERIFYSIG, _("Verify PGP signature?")) == 
M_YES)
       {
        cmflags |= M_CM_VERIFY;



-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
http://www.8t8.us/configs/gpg-key-transition-statement.txt

Attachment: signature.asc
Description: PGP signature

Reply via email to