[Top][All Lists]

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

Re: print array of characters & attributes?

From: Thomas Dickey
Subject: Re: print array of characters & attributes?
Date: Sat, 17 Feb 2007 20:58:13 -0500 (EST)

On Sun, 18 Feb 2007, Folkert van Heusden wrote:

Could not find so: does ncurses has a function which has as input some
kind of array of characters to display and for each character also its
perhaps waddchnstr()

Ok it seems waddchnstr(win, &bla, 1); is faster (60%) then waddch(win,
'.') so I think building a string into a buffer of chtype and then
putting it on the display with waddchnstr might help.
Can I just do:

        chtype var = 'a';
to set a character

        var |= A_REVERSE
to set an attribute type

        var |= COLOR_PAIR(1)
to set a color?

yes - for the chtype interface.
That doesn't apply to the cchar_t interface (I mentioned both in my reply).

Thomas E. Dickey

reply via email to

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