bug-ncurses
[Top][All Lists]
Advanced

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

Re: Problems with chgat-family of functions


From: Thomas Dickey
Subject: Re: Problems with chgat-family of functions
Date: Tue, 6 Jun 2006 07:01:41 -0400 (EDT)

yOn Tue, 6 Jun 2006, Sadrul H Chowdhury wrote:

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

On Wed, 31 May 2006, Sadrul H Chowdhury wrote:

> Hi. I am trying the following piece of code:

chgat() doesn't mark the text as altered.
I agree that it would be nice, but other implementations appear to agree.
You'll have to use touchline or touchwin to get the effect you want.


Cool. touchline worked. However, is there any way I can update/redraw only a
limited number of columns, instead of the whole line? If you are wondering
what I am trying to do, I am trying to have a shadow effect for buttons :-)

I think you could do that by making a subwindow (or derived window: subwin/derwin) and touching _that_ window. That's a little complicated, but the only thing that comes to mind.

Also, is there anyway I can print non-ASCII characters (eg. UTF-8)? Simply
using printw familty of functions prints multiple characters in place of one
UTF-8 character.

For that, you need your locale setup, build with ncursesw and to call
        setlocale(LC_ALL, "");
in the application before initscr/newterm.

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




reply via email to

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