Red Hat Bugzilla – Bug 67087
line drawing charcters appear different
Last modified: 2007-04-18 12:43:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run propietary application
Actual Results: Line drawing characters, the video is reversed behind the
line drawing character (the line itself is fine, but the background of the
caharcter box color changed) .
Redhat 7.2 was fine, redhat 7.3 changed- why?
Expected Results: Same application should look same on redhat 7.2 as redhat
I backed off to the redhat ncusrses version from redhat 7.2- and ok.
Error is also in my propietary application and buggy line drawing charactersis
are also in iptraf. Ncurses box() function is broken - color attribute.
Here is specific info on how to create the "error" condition, including a snip
After we create a window we do a box() command to draw a box around it
then we do some mvwaddch() commands to add things like left & right T
symbols and vertical & horizontal lines.
The curious thing is that the box command has the attributes wrong but
the extra stuff we add like the RTEE,LTEE,VLINE & HLINE all have the
The commands below are what we use to put a box around the a window,
create a boxed area across the top of the box for a title and add a side bar
down the left side of the box, one of our typical menus.
| title |
| | 1) one |
| | 2) two |
| | 3) three |
for (i=1 ; i<win->CCS_MAXX-1 ; i++)
for (i=w_info->d_row ; i<w_info->d_row+w_info->d_height ; i++)
I would like to note that this also affects the Curses::Widgets module for perl
that's in CPAN. This module comes with a demo that is run as a test as you
install the module. The demo exhibits the same problem:
The box function doesn't honour attributes or colors.
I'll try to have a look at the code, and see what has changed.
I reported this question to the bug-ncurses mailing list.
Thomas Dickey answered:
....and I will correct it in tomorrow's patch.
This is a corrected macro in lib_box.c (if you're in a hurry):
#define RENDER_WITH_DEFAULT(ch,def) w ## ch = _nc_render(win, (ch == 0) ? def :
thanks for the patch. Is the patch already incorporated in the upstream ncurses
or shall I add it to the spec file patch list?
confirmed this patch is integrated in latest pkg
just checking: the latest Redhat packages I've seen for ncurses are the 2002/4/6 snapshot. Where can I check on the details of the latest package?