Archived

This topic is now archived and is closed to further replies.

(n)curses and colors...

This topic is 6114 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Just a really quick question: Is there a function similar to clear that uses colors? Having to print alot of spaces to the screen is a pretty ugly solution...I MUST have missed something
"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder." - Fireside, taken from back of the Elite album

Share this post


Link to post
Share on other sites
quote:
Original post by flame_warrior

If you man curses(or man ncurses) you will get a lot of stuff and functions which can be used.


No kidding. The question is WHICH function? If you look at the curs_attr manpage it says color_set(), attr_on(), et. al. only applies to waddch(), waddstr(), wprintw() and it''s close relatives like addstr() and printw(). So if you use clear() like you would usually clear the screen it clears it to black, not to blue or green or whatever.


"This album was written, recorded and edited at Gröndal, Stockholm in the year of 2000. At this point in time money still ruled the world. Capitalistic thoughts were wide spread. From the sky filled with the fumes of a billionarie''s cigar to the deepest abyss drenched in nuclear waste. A rich kid was a happy kid, oh..dirty, filthy times. Let this be a reminder."
- Fireside, taken from back of the Elite album

Share this post


Link to post
Share on other sites