Hello all,
Is there another function besides system() I can use to clear the screen? The constant flicker is annoying.
cpp4ever
Hello all,
Is there another function besides system() I can use to clear the screen? The constant flicker is annoying.
cpp4ever
------------------------------------------
Normally I'd put something clever, but that isn't the point of being here now is it?
Perhaps you should read the FAQ like everyone else? No, wait, nobody reads the FAQ, nevermind. Ask away...
That and the fact that you provide _NO_ information on what OS you're running, what compiler you're using...
[sarcasm]I just love these questions...[/sarcasm]
Quzah.
Hope is the first step on the road to disappointment.
>>Clear screen???
LOL
Wipe it
i wrote a small function to do this
it just prints some \n on the screen...
that's the way a newbie helps himself *eg*Code:int my_cls() { my_lines(50); return 0; } int my_break() { my_newline(); printf( "[Enter] drcken zum fortzufahren... \n" ); getch(); return 0; } int my_newline() { printf( "\n" ); return 0; } int my_lines(int x) { int y; for(y=1; y<=x; y=y+1) { my_newline(); } return 0; }
Command "clrscr()". This command uses "conio.h" library.
Current projects:
1) User Interface Development Kit (C++)
2) HTML SDK (C++)
3) Classes (C++)
4) INI Editor (Delphi)
Hmmmmm, tough one
Let me think.....
...
thinking....
...
Ok got it.
Read the FAQ!
Last edited by maes; 12-05-2001 at 02:31 PM.
I thought clrscr() was a C++ thing.
gonna have to look that one up
DrakkenKorin
Get off my Intarweb!!!!
>>> I thought clrscr() was a C++ thing.
It is not ANSI C or C++. It is a function included by some, not all, compiler vendors.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
First post so if this screws up please forgive. I too have been mystified as a C beginner by the difficulty of clearing the screen. I finally resorted to writng an asm routine to do it and then discovered it can also be done by Bios interrupts ...
klausiCode:int count; for(count=0;count<20;count++, putchar('')) ; /* e.g for 80*20 a screen */
When I close my eyes nobody can see me...