News for hackers. Stuff that matters.
Re:ITerm 2 by patrickod on Sunday January 23, 2011 @06:16AM (#2132246)
What in particular should one set their TERM variable as to support 256 colors?
Re:ITerm 2 by graywh on Sunday January 23, 2011 @02:16PM (#2133076)
Depends on which terminal emulator you're using and which terminfo descriptions are available. (Ubuntu users: install the "ncurses-term" package.)

Xterm: xterm-256color, Putty: putty-256color, Gnome Terminal: gnome-256color, Konsole: konsole-256color, Screen/Tmux: screen-256color

And for anyone interested, the best TERM for Terminal.app is dtterm.

Re:ITerm 2 by onedognight on Monday January 24, 2011 @08:14AM (#2135070)
> And for anyone interested, the best TERM for Terminal.app is dtterm.

I'm interested because the home and end key don't work for me, but when I use this, I get

  Error opening terminal: dtterm.
when running a curses app after logging into a Fedora 14 box.
Re:ITerm 2 by graywh on Friday January 28, 2011 @09:59AM (#2152013)
Maybe you don't have a dtterm terminfo description there. You can get it to your remote system using terminfo and tic.
Re:ITerm 2 by pivo on Sunday January 23, 2011 @09:19AM (#2132423)
I use TERM=xterm-256color
Re:ITerm 2 by patrickod on Sunday January 23, 2011 @11:56AM (#2132741)
Having changed this 256 colors seem to work in Vim with the exception of the background color. I presume this is something to do with the default "white on black" theme that iTerm2 is using?
Re:ITerm 2 by gnachman on Sunday January 23, 2011 @02:35PM (#2133119)
I updated the FAQ to talk about this. You should set background=dark or background=light in your .vimrc.