You are not logged in.

#1 2012-03-21 06:29:16

Squiddles
Member
Registered: 2011-05-31
Posts: 73

[SOLVED] tmux ncmpcpp showing solid colors

I noticed this happening after I switched from xterm to urxvt, and it ONLY happens in urxvt. THIS is what is happening and only happens while scrolling. Any ideas as to what's going on?

Last edited by Squiddles (2012-03-21 07:14:56)

Offline

#2 2012-03-21 06:32:22

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] tmux ncmpcpp showing solid colors

Looks like either your terminfo is wrong, or you have something else going on. Are you running a compositor or a multiplexer?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-03-21 06:45:43

Squiddles
Member
Registered: 2011-05-31
Posts: 73

Re: [SOLVED] tmux ncmpcpp showing solid colors

I do have tmux running at the time of that image and running starting ncmpcpp without tmux does remedy the issue. Is there a way around it? Or should I just just launch ncmpcpp without tmux?

Offline

#4 2012-03-21 06:48:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] tmux ncmpcpp showing solid colors

echo $TERM

in tmux and in a plain terminal.

If tmux isn't set to a variant of screen (like screen-256color), you'll get that funky rendering. See the first tmux FAQ.

The one with the big, asterisked box around it smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2012-03-21 06:53:00

Squiddles
Member
Registered: 2011-05-31
Posts: 73

Re: [SOLVED] tmux ncmpcpp showing solid colors

Both tmux and plain terminal display "xterm-256color"...in urxvt...
To be clear this is the "rxvt-unicode" package.

Offline

#6 2012-03-21 06:57:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] tmux ncmpcpp showing solid colors

Squiddles wrote:

Both tmux and plain terminal display "xterm-256color"

That's why it is broken. This time I'll post from the man page:

default-terminal terminal
                     Set the default terminal for new windows created in this session - the default value of the TERM environment variable.  For tmux to work correctly, this must be
                     set to ‘screen’ or a derivative of it.

Emphasis mine...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-03-21 07:05:29

Squiddles
Member
Registered: 2011-05-31
Posts: 73

Re: [SOLVED] tmux ncmpcpp showing solid colors

Oh man. I don't even know why, but I had "TERM=xterm-256colors" in my .bashrc. Anyways, now tmux dislpays "screen" and plain displays "rvxt-unicode-256color" and the color fills are no more in ncmpcpp! Thanks!

While I'm here, I might as well ask: Should I be setting TERM manually anywhere at all? And should I be setting $TERM to something to remove any chance of other compatibility breaks? It looks like leaving it this way would prevent that.

Offline

#8 2012-03-21 07:09:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] tmux ncmpcpp showing solid colors

Squiddles wrote:

Oh man. I don't even know why, but I had "TERM=xterm-256colors" in my .bashrc. Anyways, now tmux dislpays "screen" and plain displays "rvxt-unicode-256color" and the color fills are no more in ncmpcpp! Thanks!

No problem: please remember to mark the thread as solved. (It might also help to edit the title and stick tmux in there in terms of searchability).

While I'm here, I might as well ask: Should I be setting TERM manually anywhere at all? And should I be setting $TERM to something to remove any chance of other compatibility breaks? It looks like leaving it this way would prevent that.

No. Set it in your tmux.conf as per the man page quoted above. Let your terminal and terminfo handle it outside tmux - that will avoid any "irregularities".


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2012-03-21 07:16:30

Squiddles
Member
Registered: 2011-05-31
Posts: 73

Re: [SOLVED] tmux ncmpcpp showing solid colors

Alright, set to "screen-256color" in my tmux.conf and thread set to solved with appropriate search terms, thanks a bunch, again!

Offline

Board footer

Powered by FluxBB