3 ms·
What in particular should one set their TERM variable as to support 256 colors?
by patrickod 16y ago
What in particular should one set their TERM variable as to support 256 colors?
- pivo 16y agoI use TERM=xterm-256color
- patrickod 16y agoHaving 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?
- gnachman 16y agoI updated the FAQ to talk about this. You should set background=dark or background=light in your .vimrc.
- graywh 16y agoDepends 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.
- onedognight 16y ago> 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.
- graywh 16y agoMaybe you don't have a dtterm terminfo description there. You can get it to your remote system using terminfo and tic.