a break? The two are totally unrelated, and again, we're assuming a break might even help the OP, before we even know what he wants. He simply asked how to clear the screen.
Thanks, Tyler Littlefield Web: tysdomain.com email: [email protected] My programs don't have bugs, they're called randomly added features. ----- Original Message ----- From: Robert Ryan To: [email protected] Sent: Sunday, March 15, 2009 3:14 PM Subject: Re: [c-prog] clear the screen instead of using clear the screen, why not just use a 'break;' as in a case statement --- On Sun, 3/15/09, Bill Cunningham <[email protected]> wrote: From: Bill Cunningham <[email protected]> Subject: [c-prog] clear the screen To: [email protected] Date: Sunday, March 15, 2009, 3:43 PM I don't know if there is a way to clear the screen in std c/c++. This is what I use. #include <ncurses.h> int main(void) { initscr(); refresh(); endwin(); return 0; } and link to libnurses.a It works but isn't c89 and c 99. There are platform specific ways to do this. Clear on my linux. I use the above for a version of DOSs cls. Bill [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]
