On Saturday, December 11, 2010, ChrisBuchholz
256 colours works for me, and is the major reason I use iTerm/iTerm2
(trying to use 256 colours in Mac Terminal makes things blink; ie when
using a vim theme which uses more than the default 8 colours).
I have TERM=xterm-256colour set in my shell, and use a variation of
the desert theme. If you try that, and it doesn't flash, then it's
probably 256 colours.
Paul
--
Paul Biggar
paul....@gmail.com
On Sun, Dec 12, 2010 at 7:27 PM, George Nachman <gnac...@llamas.org> wrote:
> It definitely supports 256 colors. Usually setting your terminal type
> is sufficient. Perhaps your .bashrc or .profile is overriding it? Try
> logging on to a different host.
>
> On Saturday, December 11, 2010, ChrisBuchholz
> <christoffe...@gmail.com> wrote:
>> Hi guys,
>>
>> How would I go about getting iTerm 2 to use 256 colors?
>> I have tried setting the "Report Terminal type" to `xterm-256color` in
>> Preferences -> Bookmarks -> Default profile (which i use) -> Terminal,
>> but it doesn't seem to work.
>>
>> I should say, that the way I am testing that I am not getting 256
>> colors, is simply by looking at the colors when I open Vim and irssi
>> in iTerm 2 and comparing the colors to what I get on Debian Lenny and
>> Fedora 14. A guess would be, that I am getting something more like 8
>> colors, not the 256 I am going for.
>>
>> Are iTerm 2 simply not supporting 256 colors, or do I need to change
>> some preference or something?
>>
>>
>> Thank you,
>> Chris Buchholz
>
I tried the other host things - didnt give me any other result. I dont
think my .bashrc overrides anything it shouldn't. You can see my
.bashrc here: https://github.com/ChrisBuchholz/dotfiles/blob/master/.bashrc
The colortest script does indeed seem to show 256 colors, so I dont
get what is wrong. I can just tell, that the colors I get with Debian
Lenny or MacVim is different than those of iTerm with vim. Although,
after looking closer and googling a bit, it seems there can be
differences. I should also say, that I dont get the same result with
Gnome-terminal on Debian Lenny vs MacVim or GVim. So maybe vim
actually shows the correct colors? I dunno. For definetly, though, GNU
Screen and irssi is definetly not showing 256 colors. With irssi, its
neither when i run it inside or out of screen. When i take a look at
irssi, i can only count seven different colors, and that is including
white, grey and black. Maybe GNU Screen and irssi is not compiled with
256 colors?
I tried that, but it didnt give me any different result. But its
definetly nice to have in my .bashrc - I also use something similar in
the .bashrc I have on my debian lenny install to get 256 colors to
work :P
No i didnt. On ubuntu it seemed i should at one i tried, but not on debian and fedora.
On 2010-12-13 22:23 , George Nachman wrote:
> screen 256colorbug.txt
script 256colorbug.txt
> cat .vimrc
> set
> vimdiff foo bar
> :qa!
> exit
Stop answering mails and enjoy your stay, George! ;-)
Rainer