🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

(n)curses and colors...

Started by
2 comments, last by Staffan 23 years, 3 months ago
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
Advertisement
If you man curses(or man ncurses) you will get a lot of stuff and functions which can be used.
Hello from my world
system("clear");



saai
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

This topic is closed to new replies.

Advertisement