[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to get slrn colored in xterm ?



dpk wrote:
> Add the following line to your ~/.Xdefaults or ~/.Xresources, depending
> on which one you use:
> 
> xterm*customization:            -color
> 
> You may also choose to add it to /etc/X11/Xresources, to make it a
> system-wide default.

Actually, though that will enable color for everything else, it will not
help slrn or other slang-based programs. For those, you have to either use
the command line option they have that enables color (for slrn, -C), or you
need to set the COLORTERM environment variable. Here is an example of how I
set the latter in my /etc/zshrc:

# Set COLORTERM for s-lang programs if this is a color terminal
if [[ $TERM = "xterm" ]] || [[ $TERM = "linux" ]]; then
	export COLORTERM=y
fi

For bash, you'd want something like this: (untested)

# Set COLORTERM for s-lang programs if this is a color terminal
if [ "$TERM" = "xterm" -o "$TERM" = "linux" ]; then
	COLORTERM=y
	export COLORTERM
fi

-- 
see shy jo


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: