Thread View: news.software.readers
1 messages
1 total messages
Started by Jan Hlavacek
Tue, 01 Jul 1997 00:00
Re: slrn and colors in xterm
Author: Jan Hlavacek
Date: Tue, 01 Jul 1997 00:00
Date: Tue, 01 Jul 1997 00:00
58 lines
2792 bytes
2792 bytes
On 30 Jun 1997 19:22:14 EDT, Vikas Agnihotri <vikas@insight.att.com> wrote:
>Hello,
> The colors in a color xterm are dependent on my X resource settings in
>that *color0 thru *color7 resources are the actual colors and not the ANSI
>defaults of black, blue, etc.
>
>Hence, if I change my X resource settings so that color0=pink and
>color7=green and I specify the following in slrnrc
>
>color object pink green
>
>I expect to get pink fg and green bg, right?
No! The names of colors in slrn (and mutt, lynx, vim ...) are the standard
colors on a dos console, i.e. black = color0, red = color1 (I may not
remember them correctly) and so on. So if you set X resources for rxvt the
way you described, you have to use
color object black white (or whatever color0 and color7 are on dos console).
Slrn can't know what your rxvt resources are! How could slrn know that pink
is color0 in your rxvt?
I think slang should support names like color0, color1 and so on in the
future, besides the standard dos color names. In vim, you can use numbers
as well as names for colors. It will be less confusing for people who don't
have the standard colors on their terminals.
Man, this postpone thing is good! I looked at sldisply.c in slang/src, it
looks like you need to add some 16 lines of the form
{"color0", SLSMG_COLOR_BLACK},
but I didn't want to try it, I was affraid to break something. John?
>
>But slrn does not seem to like this. It complains about the invalid color
>names, etc.
Of course, slrn doesn't understand pink. The resources you specify are not
for slrn. They are for rxvt.
>Basically, any change from ANSi default colors and slrn cant handle it. I
>am forced to keep my *color resources untouched.
You can change them however you please. You just have to accept that the
word black in your .slrn.rc will mean something else, for example pink,
and so will the other color names.
lahvak
--
Jan Hlav\'{a}\v{c}ek
lahvak+n@math.ohio-state.edu (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/ is back!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads