Today I finally switched my long-running IRC screen session to tmux. I rarely disconnect so I was simply waiting for a "good" time.
After a few minutes I noticed that my irssi scrollback was misbehaving; only half of my window would redraw when I pressed PgUp of PgDn.
I had manually set "TERM=xterm" in my bashrc; however, tmux advises only using "screen" or "screen-256color" as the term. I have no idea why I had specified term within my bashrc; removing the line and restarting tmux corrected the issue.
http://tmux.cvs.sourceforge.net/viewvc/tmux/tmux/FAQ
Thank you!
ReplyDeleteCheers!
ReplyDeleteThanks for this!
ReplyDeleteNot sure why xterm would be set in your case, but I needed to have xterm-256color set for tmux + vim to play nice with my color scheme. Sadly screen-256color created weird text artifacts (in gnome-terminal at least) so I went another route and created an alias to override TERM just for irssi:
alias irssi='TERM=screen-256color irssi'
right on Chris. Great post, and thanks for sharing. Been driving me nuts. Also fixes broken current line highlighting. AF, nice workaround. I'll have to keep that in mind if I notice any similar negative affects. Interesting how 3 of 4 posts are on November 15. How crazy is that!
ReplyDeleteI'm glad you found the post useful drew. It's very odd, and interesting, that most 3 of 4 replies are on Nov. 15th and at least a year apart... thanks for pointing that out.
DeleteThank you for your comment AF. I too have xterm-256color set for my tmux and vim driven workflow and my irssi's broken scrolling was fixed by your alias.
ReplyDeleteirssi 0.8.17 (20141011 1044)
tmux 2.0
vim 7.4.488
bash 4.3.39
os x 10.10.5
More than five years after posting this, it's still helping people like me have a better tmux + irssi experience!
ReplyDeleteThis also fixes weird scrolling issues with rtorrent as well, thanks!
ReplyDelete