Re: getting 256 colors

2012-10-31 Thread John Schmitt
On Wed, Oct 31, 2012 at 08:44:25AM +, Nicholas Marriott wrote: > screen256-color doesn't exist, do you mean screen-256color? > > You should set TERM to xterm-256color BEFORE starting tmux, and make > sure it is screen-256color inside tmux. Forcing konsole to set TERM=xterm-256color works well

Re: getting 256 colors

2012-10-31 Thread Jim Myhrberg
What's the value of TERM before you launch tmux? My guess is that it is "xterm" rather than "xterm-256color". Ensure iTerm/Terminal is set to use *-256color. On 31 Oct 2012, at 01:38, John Schmitt wrote: > On Tue, Oct 30, 2012 at 08:15:50PM -0500, Mark Volkmann wrote: >> Just finished reading t

Re: getting 256 colors

2012-10-31 Thread Nicholas Marriott
screen256-color doesn't exist, do you mean screen-256color? You should set TERM to xterm-256color BEFORE starting tmux, and make sure it is screen-256color inside tmux. On Tue, Oct 30, 2012 at 10:07:33PM -0700, John Schmitt wrote: > On Wed, Oct 31, 2012 at 01:44:11AM +, Jim Myhrberg wrote:

Re: getting 256 colors

2012-10-30 Thread John Schmitt
On Wed, Oct 31, 2012 at 01:44:11AM +, Jim Myhrberg wrote: > What's the value of TERM before you launch tmux? My guess is that it is > "xterm" rather than "xterm-256color". Ensure iTerm/Terminal is set to use > *-256color. I use konsole on Fedora 17. My $TERM=screen256-color. If I launch tm

Re: getting 256 colors

2012-10-30 Thread Mark Volkmann
Thanks so much everyone for the suggestions! It turns out that I had set the iTerm preferences as described below, but I had not quit iTerm2 and restarted it, so my TERM environment variable was still set to "xterm". Restarting it corrected the problem. -- R. Mark Volkmann Object Computing, Inc.

Re: getting 256 colors

2012-10-30 Thread Adrian Luff
If you have to specify "tmux -2" then something is wrong with your environment. That says your terminal supports 256 colors but isn't declaring it correctly. With OS X 10.7+ and the Apple Terminal, configure "xterm-256color" support. This is done in Preferences -> Settings -> Advanced -> Declare

Re: getting 256 colors

2012-10-30 Thread John Schmitt
On Tue, Oct 30, 2012 at 08:15:50PM -0500, Mark Volkmann wrote: > Just finished reading the excellent book "tmux: Productive Mouse-Free > Development"! I'm working on a Mac. The book indicates that the only > things I have to do to get 256 colors on a Mac are: > > 1) run tmux from iTerm2 > 2) add t

getting 256 colors

2012-10-30 Thread Mark Volkmann
Just finished reading the excellent book "tmux: Productive Mouse-Free Development"! I'm working on a Mac. The book indicates that the only things I have to do to get 256 colors on a Mac are: 1) run tmux from iTerm2 2) add this to my .tmux.conf: set -g default-terminal "screen-256color" However, i