Running Weechat in a tmux session in iTerm2 creates artifacts when switching channels in Weechat.

Thanks for filing an issue! Please answer the questions below so I can help you.

  • iTerm2 version: Build 3.0.12
  • OS version: Latest El Capitan
  • Attach ~/Library/Preferences/com.googlecode.iterm2.plistcom.googlecode.iterm2.plist

Detailed steps to reproduce the problem:

  1. Start a tmux session within iTerm2
  2. Start weechat within that tmux session
  3. Play around and switch channels in weechat

What happened: all the channels should render correctly after switching, with no artifacts on them

What should have happened: there are artifacts as seen on this screenshot: http://i.imgur.com/EXCPT8C.jpg

I had tried setting different $TERM variables, as advised online (i.e. screen or screen-256color and others) but in all cases, when I've been either running weechat or weechat-ncurses, I could see artifacts as seen on the attached screenshot. This behaviour is not happening when I'm switching channels in a tmux session in the standard OS X Terminal.

I think that I can reproduce this issue on demand, so feel free to ask for any extra details, I'll be happy to deliver!

Thanks for such an awesome piece of software, btw :)