bug-ncurses
[Top][All Lists]
Advanced

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

Re: box() doesn't use color


From: Thomas E. Dickey
Subject: Re: box() doesn't use color
Date: Sun, 10 Aug 2003 06:53:01 -0400 (EDT)

On Sat, 9 Aug 2003, William McBrine wrote:

> Here's something weird. The following bit of code has up until now
> produced the expected results on all platforms (including an Alpha -- so I
> don't think it's really a 64-bit issue), and all versions of curses that
> I've tried (ncurses 1.x-5.3, PDCurses, etc.). The other day, I tried it on
> the new AMD64 system in the SourceForge compile farm -- running SuSE, with
> ncurses 5.2 -- and saw that the box() function was not applying the

I fixed this in 5.3

> specified attribute colors to what it drew.
>
> Expected results (from the compile farm's Alpha):
>
>  http://home.covad.net/~wmcbrine/mm-normal.png
>
> And from the AMD64:
>
>  http://home.covad.net/~wmcbrine/mm-weird.png
>
> Same version of the program. Here's the function that calls box():
>
> void Win::boxtitle(coltype backg, const char *title, chtype titleAttrib)
> {
>         attrib(backg);
>         box(win, 0, 0);
>
>         if (title) {
>                 put(0, 2, ACS_RTEE);
>                 put(0, 3 + strlen(title), ACS_LTEE);
>                 attrib(titleAttrib);
>                 put(0, 3, title);
>                 attrib(backg);
>         }
> }
>
> As you can see, the attribute is not changed between the drawing of the
> box and the drawing of the "brackets" around the title; yet the latter are
> colored correctly.
>
>

-- 
T.E.Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]