bug-ncurses
[Top][All Lists]
Advanced

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

Re: in_wch and add_wch


From: Thomas Dickey
Subject: Re: in_wch and add_wch
Date: Sun, 3 Sep 2006 12:49:16 -0400 (EDT)

On Sun, 3 Sep 2006, Sadrul H Chowdhury wrote:

On 9/3/06, Thomas Dickey <address@hidden> wrote:

On Sat, 2 Sep 2006, Sadrul H Chowdhury wrote:

> I am currently using a hack to work around this problem. Instead of
doing
> add_wch(), I am delch()ing W times from that location (where W is the
> column-width of the character), changing the attribute, and then
> ins_wch()ing, and it seems to work! The code follows:

The problem is that in an earlier fix, I used part of the attribute value
to encode multi-column data.  You should be able to use a simpler
workaround, e.g.,

>   for (i = 0; i < 12; i += w) {
>       if (mvin_wch(0, i, &ch) == OK) {

             ch.attr &= A_ATTRIBUTES;


It's a much nicer work around. And I noticed you have also patched the bug.
Great!

no problem (thanks for the bug report)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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