|
From: | Thomas Dickey |
Subject: | Re: in_wch and add_wch |
Date: | Sun, 3 Sep 2006 11:55:27 -0400 (EDT) |
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; -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
[Prev in Thread] | Current Thread | [Next in Thread] |