Changes between Version 2 and Version 3 of 256Colors
- Timestamp:
- Jul 30, 2010, 5:02:33 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
256Colors
v2 v3 1 BarnOwl has built-in support for 256 color terminals, assuming your libncursesw (and GNU `screen`, if you're using it) support it.1 BarnOwl has built-in support for 256-color terminals, assuming your libncursesw (and GNU Screen, if you're using it) support it. 2 2 3 If you're running BarnOwl out of the locker and want 256color support, use `barnowl-256color` instead of `barnowl`. 4 5 As of Debian Lenny, the stock screen is built with 256color support, but it is disabled by default. 6 To enable it, add the following to your `~/.screenrc`. 3 Outside of screen, your `TERM` environment variable must be set to `xterm-256color` instead of `xterm`. If you're running BarnOwl out of the locker, the `barnowl-256color` wrapper sets this for you. But to get 256 color support for all programs, put something like this in your `~/.bashrc`: 7 4 {{{ 8 # tell screen how to set colors. AB = background, AF=foreground 9 termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' 10 # erase background with current bg color 11 defbce "on" 5 case "$TERM" in 6 xterm) TERM=xterm-256color;; 7 esac 12 8 }}} 13 9 14 For older platforms, the barnowl locker may have a newer `screen` under the name of `screen-256color`; `/mit/barnowl/etc/screenrc` includes the aforementioned additions. 10 As of Debian Lenny, the stock `screen` is built with 256 color support. To enable it, first make sure your outer `TERM` is `xterm-256color` as above, and add the following to your `~/.screenrc`: 11 {{{ 12 # Erase background with current bg color 13 defbce on 14 # Advertise 256 color support to inner applications 15 term screen-256color-bce 16 }}} 15 17 18 For older platforms, the `barnowl` locker may have a newer `screen` under the name of `screen-256color`; `/mit/barnowl/etc/screenrc` includes the aforementioned additions. 19 20 In case you want to use 256-color Emacs inside screen, see [http://debbugs.gnu.org/db/26/2650.html Emacs bug 2650].