* [sup-talk] Strange random changing of default colors
@ 2009-05-20 14:55 Mark Alexander
[not found] ` <1242840017-sup-6420@cabinet>
2009-05-20 18:52 ` William Morgan
0 siblings, 2 replies; 4+ messages in thread
From: Mark Alexander @ 2009-05-20 14:55 UTC (permalink / raw)
For while now I've been running off of the next branch,
and I've been noticing strange and hard-to-reproduce
problems with sup changing the default colors. When
I start it, things are fine for a few minutes, and the default
colors (for things like the unused portion of the display
or quoted text) are fine. Then after a few minutes,
the default colors will get changed to yellow-on-black,
or black-on-red, or some other strange thing. I haven't
been able to track down exactly what causes this.
Sometimes it happens when going through my inbox;
sometimes from doing a '/' to search for a string.
The only thing I can say is that the new default colors
seem to have been picked from some line that was
being displayed by sup. For example, a few times
when an "unreceived message" line was being displayed
in a thread, and I moved the highlight over that line,
the default colors got changed to the colors of that
line (black on red in this case).
I've seen this on both Fedora Core 4 with xterm,
and OpenSUSE 10.2 with konsole. So it's possible
it's a problem with older versions of ncurses.
I'll try this on Ubuntu 8.10 at some point soon.
Has anybody else noticed this?
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1242840017-sup-6420@cabinet>]
* [sup-talk] Strange random changing of default colors
[not found] ` <1242840017-sup-6420@cabinet>
@ 2009-05-20 18:04 ` Mark Alexander
0 siblings, 0 replies; 4+ messages in thread
From: Mark Alexander @ 2009-05-20 18:04 UTC (permalink / raw)
On Wed, May 20, 2009 at 10:26 AM, Marc Hartstein
<marc.hartstein at alum.vassar.edu> wrote:
> Excerpts from Mark Alexander's message of Wed May 20 10:55:28 -0400 2009:
> I'm running Gentoo here, and keep my system fairly up-to-date. ncurses
> is 5.6-r2, and I run under screen under rxvt-unicode.
I forgot to mention I'm running screen too. I'll try eliminating screen
to see if that changes anything.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [sup-talk] Strange random changing of default colors
2009-05-20 14:55 [sup-talk] Strange random changing of default colors Mark Alexander
[not found] ` <1242840017-sup-6420@cabinet>
@ 2009-05-20 18:52 ` William Morgan
2009-05-21 16:33 ` Mark Alexander
1 sibling, 1 reply; 4+ messages in thread
From: William Morgan @ 2009-05-20 18:52 UTC (permalink / raw)
Reformatted excerpts from Mark Alexander's message of 2009-05-20:
> For while now I've been running off of the next branch, and I've been
> noticing strange and hard-to-reproduce problems with sup changing the
> default colors.
I've fixed this in master and next. The problem was that Curses limits
you to a set number of color pairs, and I had thought that limit was 16
(the Ruby bindings don't seem to expose it), and so if you used Sup for
long enough you would eventually run out of colors and it would
helpfully replace old color definitions with new ones for you. :)
But rumors suggest that the limit is more like 64, except in archaic
cases, so I've hard-coded that instead of 16, and experimentally it
seems fine to me (even running through screen).
Let me know if you experience more color weirdness, especially on
archaic systems like Mac OS and Windows.
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-21 16:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-20 14:55 [sup-talk] Strange random changing of default colors Mark Alexander
[not found] ` <1242840017-sup-6420@cabinet>
2009-05-20 18:04 ` Mark Alexander
2009-05-20 18:52 ` William Morgan
2009-05-21 16:33 ` Mark Alexander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox