[Top][All Lists]

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

Re: print array of characters & attributes?

From: Folkert van Heusden
Subject: Re: print array of characters & attributes?
Date: Sun, 18 Feb 2007 02:21:59 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

> >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
> >attributes?
> 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?

Folkert van Heusden

Temperature outside:    5.687500, temperature livingroom: 20.7
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com

reply via email to

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