1

For switching accounts in mutt I user folder hooks through a macro like:

folder-hook 'google.com'  'source ~/.mutt/account.gmail.muttrc'
macro index <f2> '<sync-mailbox><enter-command>source \
~/.mutt/account.gmail.muttrc<enter><change-folder>!<enter>'

After every switch my terminal displays not deleted characters in empty areas behind the mail topic and body text.

How can I clear my display after each account or folder switch?

1

I was looking for this answer but didn't find it; so I got the same answer. Adding <redraw-screen> at the end will do the trick.

macro index <f2> '<sync-mailbox><enter-command>source \
~/.mutt/account.gmail.muttrc<enter><change-folder>!<enter><redraw-screen>'
  • This sounds more like a workaround than a fix. It sounds like your TERM is broken/misconfigured... – jasonwryan Jun 15 '16 at 19:12
  • That might be the case. I use zsh with terminator and iTerm. – tasmo Jun 15 '16 at 19:16

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.