![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to clear screen in GDB session | useless79 | High Level Programming | 1 | 09-06-2007 07:59 PM |
| Clear log file in use. | coolbhai | UNIX for Advanced & Expert Users | 10 | 06-20-2007 06:37 AM |
| Clear screen in NAWK | petoSVK | Shell Programming and Scripting | 2 | 05-21-2006 08:01 PM |
| clear screen in g++ | gefa | High Level Programming | 2 | 04-22-2006 06:00 AM |
| How to clear screen | giannicello | High Level Programming | 2 | 05-14-2002 01:32 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
what is the syntax for clearing the screen in c ?
when i tried "Clrscr()" the CC complier does not reconise it. please do tell me more about this. thanking you imma |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
I only got a SEGfault with gcc. clear(); does not clear the screen. and I cant compile with refresh(); in the code. I'm kind of new in c programming to so excuse my question. But I'm learning Thanks! |
|
|||
|
Curses is a subsystem (library) for managing character screens. Using it involves more than just calling the clear-screen function. You have to initialize it, etc.
From your question, it isn't clear to me that you are using Curses. If you want to, that's a study in itself, and there are several books on the subject, and probably some tutorials you can find on the web. Aside from Curses, there is no standard way to clear the screen, or even to treat the terminal AS a screen. Standard C assume that the terminal is a line-at-a-time device. |
|
|||
|
Quote:
There is an other way else with: #include <stdlib.h> int main(void) { system("clear"); } but there is allways fun to explorer new ways in doing things I will go straight home now and read the manpages inside and out later! |