C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Clear Screen?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Tim Mierzejewski
Guest





PostPosted: Fri Jun 27, 2003 3:58 pm    Post subject: Clear Screen? Reply with quote



How do I clear the text from my screen, other than a bunch of n's or
endl's?

Tim M.


Back to top
Victor Bazarov
Guest





PostPosted: Fri Jun 27, 2003 4:02 pm    Post subject: Re: Clear Screen? Reply with quote



"Tim Mierzejewski" <timmierz (AT) yahoo (DOT) com> wrote...
Quote:
How do I clear the text from my screen, other than a bunch of n's or
endl's?

Please read FAQ 15.20. You can find FAQ
here: http://www.parashift.com/c++-faq-lite/

Victor



Back to top
Unforgiven
Guest





PostPosted: Fri Jun 27, 2003 4:44 pm    Post subject: Re: Clear Screen? Reply with quote



Tim Mierzejewski wrote:
Quote:
How do I clear the text from my screen, other than a bunch of n's or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor pointed you to.
However, you can ask the OS to do it for you. The most common ways to do
this are 'system("cls");' in Windows and system("clear");' in Linux. The
system function is defined in <process.h>

--
Unforgiven

"Not only do I not know the answer
I don't even know what the question is"
My world - Metallica


Back to top
Ashish
Guest





PostPosted: Fri Jun 27, 2003 5:30 pm    Post subject: Re: Clear Screen? Reply with quote


"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote

Quote:
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of n's or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor pointed you
to.


Huh? C++ can do a lot of things using the OS specific libraries. Dont say
C++ cannot clear the screen. Instead, you should say standard C++ cannot
clear the screen.


Quote:
However, you can ask the OS to do it for you. The most common ways to do
this are 'system("cls");' in Windows and system("clear");' in Linux. The
system function is defined in
--
Unforgiven

"Not only do I not know the answer
I don't even know what the question is"
My world - Metallica



--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
http://www.123ashish.com http://www.softwarefreaks.com



Back to top
Victor Bazarov
Guest





PostPosted: Fri Jun 27, 2003 6:58 pm    Post subject: Re: Clear Screen? Reply with quote

"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...
Quote:

"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote in message
news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of n's or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor pointed you
to.

Huh? C++ can do a lot of things using the OS specific libraries. Dont say
C++ cannot clear the screen. Instead, you should say standard C++ cannot
clear the screen.

That's the only C++ we speak of here.



Back to top
Victor Bazarov
Guest





PostPosted: Fri Jun 27, 2003 7:32 pm    Post subject: Re: Clear Screen? Reply with quote

"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...
Quote:

"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote in message
news:vfp4veg8id694c (AT) corp (DOT) supernews.com...
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote in message
news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of n's
or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor pointed
you
to.

Huh? C++ can do a lot of things using the OS specific libraries. Dont
say
C++ cannot clear the screen. Instead, you should say standard C++
cannot
clear the screen.

That's the only C++ we speak of here.



Thats what I said too... but dont misguide the OP by saying that C++
cannot


Misguide?

Quote:
do this, or can do that. Guide him to an appropriate newsgroup. I am sure
you understand that.

But in all honesty, C++ cannot clear the screen. It's some OS-
specific library call that does that. Or sequence of characters
output to console or ... But it is not a language thing. And,
by the way, while there exist extensions to the language created
by some eager compiler vendors, there is only one C++ -- Standard.

That's what we mean when we say "C++ cannot do that". Another
example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
Can C++ read and display JPEG files? NO. Displaying them is not
a language feature. C++ cannot do that. Not standard, not any
other C++. The same with clearing the screen.

Guiding others to a particular newsgroup is a voluntary thing. If
you stop me in the street and ask whether I could give you a lift
to a town a thousand kilometres away, I'll probably say "No, sorry,
I cannot do that", but I am not obligated to explain to you all
possible options you have or direct you to a bus station. It is
up to you to figure that out. (Of course it might be mighty kind
of me to point you to a bus stop, and I _probably_ would do that
if I knew where you were going -- The OP just asked whether there
was a way to clear the screen except outputting newline characters,
and there isn't). See the point?

Anyway...

Victor



Back to top
Ashish
Guest





PostPosted: Fri Jun 27, 2003 8:08 pm    Post subject: Re: Clear Screen? Reply with quote


"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote

Quote:
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote in message
news:vfp4veg8id694c (AT) corp (DOT) supernews.com...
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote in message
news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of
n's
or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor
pointed
you
to.

Huh? C++ can do a lot of things using the OS specific libraries.
Dont
say
C++ cannot clear the screen. Instead, you should say standard C++
cannot
clear the screen.

That's the only C++ we speak of here.



Thats what I said too... but dont misguide the OP by saying that C++
cannot

Misguide?

do this, or can do that. Guide him to an appropriate newsgroup. I am
sure
you understand that.

But in all honesty, C++ cannot clear the screen. It's some OS-
specific library call that does that. Or sequence of characters
output to console or ... But it is not a language thing. And,
by the way, while there exist extensions to the language created
by some eager compiler vendors, there is only one C++ -- Standard.

That's what we mean when we say "C++ cannot do that". Another
example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
Can C++ read and display JPEG files? NO. Displaying them is not
a language feature. C++ cannot do that. Not standard, not any
other C++. The same with clearing the screen.

Guiding others to a particular newsgroup is a voluntary thing. If
you stop me in the street and ask whether I could give you a lift
to a town a thousand kilometres away, I'll probably say "No, sorry,
I cannot do that", but I am not obligated to explain to you all
possible options you have or direct you to a bus station. It is
up to you to figure that out. (Of course it might be mighty kind
of me to point you to a bus stop, and I _probably_ would do that
if I knew where you were going -- The OP just asked whether there
was a way to clear the screen except outputting newline characters,
and there isn't). See the point?

Anyway...

Victor



I agree with you. But if you tell me that you cannot give me a lift to a
thown a thousand kilometers away doesnt mean that you should tell me that
there is no way I can go to that town. Thats what the other person did. He
said that C++ cannot... I am not saying that he or you HAVE to guide the OP
to an appropriate newsgroup, its voluntary ofcourse, but dont MISguide him
saying that it cannot be done. Get it?


--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
http://www.123ashish.com http://www.softwarefreaks.com



Back to top
Ashish
Guest





PostPosted: Fri Jun 27, 2003 8:09 pm    Post subject: Re: Clear Screen? Reply with quote


"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote

Quote:
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote in message
news:vfp4veg8id694c (AT) corp (DOT) supernews.com...
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote in message
news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of
n's
or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor
pointed
you
to.

Huh? C++ can do a lot of things using the OS specific libraries.
Dont
say
C++ cannot clear the screen. Instead, you should say standard C++
cannot
clear the screen.

That's the only C++ we speak of here.



Thats what I said too... but dont misguide the OP by saying that C++
cannot

Misguide?

do this, or can do that. Guide him to an appropriate newsgroup. I am
sure
you understand that.

But in all honesty, C++ cannot clear the screen. It's some OS-
specific library call that does that. Or sequence of characters

And those OS-specific libraries cannot be used using C++. I get it now.




Back to top
Victor Bazarov
Guest





PostPosted: Fri Jun 27, 2003 9:07 pm    Post subject: Re: Clear Screen? Reply with quote

"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote

Quote:

"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote in message
news:vfp6v1kb2ji0c4 (AT) corp (DOT) supernews.com...
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote in message
news:vfp4veg8id694c (AT) corp (DOT) supernews.com...
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote in message
news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of
n's
or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor
pointed
you
to.

Huh? C++ can do a lot of things using the OS specific libraries.
Dont
say
C++ cannot clear the screen. Instead, you should say standard C++
cannot
clear the screen.

That's the only C++ we speak of here.



Thats what I said too... but dont misguide the OP by saying that C++
cannot

Misguide?

do this, or can do that. Guide him to an appropriate newsgroup. I am
sure
you understand that.

But in all honesty, C++ cannot clear the screen. It's some OS-
specific library call that does that. Or sequence of characters
output to console or ... But it is not a language thing. And,
by the way, while there exist extensions to the language created
by some eager compiler vendors, there is only one C++ -- Standard.

That's what we mean when we say "C++ cannot do that". Another
example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
Can C++ read and display JPEG files? NO. Displaying them is not
a language feature. C++ cannot do that. Not standard, not any
other C++. The same with clearing the screen.

Guiding others to a particular newsgroup is a voluntary thing. If
you stop me in the street and ask whether I could give you a lift
to a town a thousand kilometres away, I'll probably say "No, sorry,
I cannot do that", but I am not obligated to explain to you all
possible options you have or direct you to a bus station. It is
up to you to figure that out. (Of course it might be mighty kind
of me to point you to a bus stop, and I _probably_ would do that
if I knew where you were going -- The OP just asked whether there
was a way to clear the screen except outputting newline characters,
and there isn't). See the point?

Anyway...

Victor



I agree with you. But if you tell me that you cannot give me a lift to a
thown a thousand kilometers away doesnt mean that you should tell me that
there is no way I can go to that town. Thats what the other person did.

No. Using the same analogy, the other person told you that you
can't get to another town in Victor's car. He didn't say that
clearing of the screen cannot be done. He said that clearing of
the screen cannot be done with C++. Get it?

Quote:
He
said that C++ cannot...

And you think that C++ can? Show me.

Quote:
I am not saying that he or you HAVE to guide the OP
to an appropriate newsgroup, its voluntary ofcourse, but dont MISguide him
saying that it cannot be done. Get it?

Do you understand the difference between "it cannot be done" and
"it cannot be done using C++ means"? Saying the latter does NOT
imply the former, and in no way is misguiding. Get it?



Back to top
Ashish
Guest





PostPosted: Fri Jun 27, 2003 9:27 pm    Post subject: Re: Clear Screen? Reply with quote


"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote

Quote:
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote in message
news:bdi87u$tentc$1 (AT) ID-75446 (DOT) news.dfncis.de...

"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote in message
news:vfp6v1kb2ji0c4 (AT) corp (DOT) supernews.com...
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Victor Bazarov" <v.Abazarov (AT) attAbi (DOT) com> wrote in message
news:vfp4veg8id694c (AT) corp (DOT) supernews.com...
"Ashish" <ashoooo (AT) hotmail (DOT) com> wrote...

"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote in message
news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch
of
n's
or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor
pointed
you
to.

Huh? C++ can do a lot of things using the OS specific libraries.
Dont
say
C++ cannot clear the screen. Instead, you should say standard
C++
cannot
clear the screen.

That's the only C++ we speak of here.



Thats what I said too... but dont misguide the OP by saying that C++
cannot

Misguide?

do this, or can do that. Guide him to an appropriate newsgroup. I am
sure
you understand that.

But in all honesty, C++ cannot clear the screen. It's some OS-
specific library call that does that. Or sequence of characters
output to console or ... But it is not a language thing. And,
by the way, while there exist extensions to the language created
by some eager compiler vendors, there is only one C++ -- Standard.

That's what we mean when we say "C++ cannot do that". Another
example: can C++ read files? Yes. Can C++ read JPEG files? Yes.
Can C++ read and display JPEG files? NO. Displaying them is not
a language feature. C++ cannot do that. Not standard, not any
other C++. The same with clearing the screen.

Guiding others to a particular newsgroup is a voluntary thing. If
you stop me in the street and ask whether I could give you a lift
to a town a thousand kilometres away, I'll probably say "No, sorry,
I cannot do that", but I am not obligated to explain to you all
possible options you have or direct you to a bus station. It is
up to you to figure that out. (Of course it might be mighty kind
of me to point you to a bus stop, and I _probably_ would do that
if I knew where you were going -- The OP just asked whether there
was a way to clear the screen except outputting newline characters,
and there isn't). See the point?

Anyway...

Victor



I agree with you. But if you tell me that you cannot give me a lift to a
thown a thousand kilometers away doesnt mean that you should tell me
that
there is no way I can go to that town. Thats what the other person did.

No. Using the same analogy, the other person told you that you
can't get to another town in Victor's car. He didn't say that
clearing of the screen cannot be done. He said that clearing of
the screen cannot be done with C++. Get it?

He
said that C++ cannot...

And you think that C++ can? Show me.

I am not saying that he or you HAVE to guide the OP
to an appropriate newsgroup, its voluntary ofcourse, but dont MISguide
him
saying that it cannot be done. Get it?

Do you understand the difference between "it cannot be done" and
"it cannot be done using C++ means"? Saying the latter does NOT
imply the former, and in no way is misguiding. Get it?



Oh, why am I arguing with you anyways? I reinstalled my OS and lost all the
news and email filters. Time to ignore you and Dan Poop again. Goodbye.



Back to top
Default User
Guest





PostPosted: Fri Jun 27, 2003 11:05 pm    Post subject: Re: Clear Screen? Reply with quote



Ashish wrote:

Quote:
Oh, why am I arguing with you anyways? I reinstalled my OS and lost all the
news and email filters. Time to ignore you and Dan Poop again. Goodbye.


Is there some reason you had three screens worth of quotes for this tiny
reply?



Brian Rodenborn

Back to top
Ashish
Guest





PostPosted: Sat Jun 28, 2003 2:08 am    Post subject: Re: Clear Screen? Reply with quote


"Default User" <first.last (AT) company (DOT) com> wrote

Quote:


Ashish wrote:

Oh, why am I arguing with you anyways? I reinstalled my OS and lost all
the
news and email filters. Time to ignore you and Dan Poop again. Goodbye.


Is there some reason you had three screens worth of quotes for this tiny
reply?


Yes. A couple of reasons actually. First, it has become an off-topic thread
and anyone who cares to read off-topic posts should probably take the
efforts to scroll down to the bottom. Second, I am too lazy.


--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
http://www.123ashish.com http://www.softwarefreaks.com



Back to top
Jack Klein
Guest





PostPosted: Sat Jun 28, 2003 6:20 am    Post subject: Re: Clear Screen? Reply with quote

On Fri, 27 Jun 2003 13:30:17 -0400, "Ashish" <ashoooo (AT) hotmail (DOT) com>
wrote in comp.lang.c++:

Quote:

"Unforgiven" <jaapd3000 (AT) hotmail (DOT) com> wrote in message
news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of n's or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor pointed you
to.

Huh? C++ can do a lot of things using the OS specific libraries. Dont say
C++ cannot clear the screen. Instead, you should say standard C++ cannot
clear the screen.

I guarantee you that I can show you several systems where C++,
standard or not, cannot clear the screen. For the simple reason that
there IS NO SCREEN. One of the reasons C++ does not support a screen
is that it does not require one.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq

Back to top
Ashish
Guest





PostPosted: Sat Jun 28, 2003 3:22 pm    Post subject: Re: Clear Screen? Reply with quote


"Jack Klein" <jackklein (AT) spamcop (DOT) net> wrote

Quote:
On Fri, 27 Jun 2003 13:30:17 -0400, "Ashish" <ashoooo (AT) hotmail (DOT) com
wrote in comp.lang.c++:


"Unforgiven" news:bdhs8i$t2rsj$1 (AT) ID-136341 (DOT) news.dfncis.de...
Tim Mierzejewski wrote:
How do I clear the text from my screen, other than a bunch of n's
or
endl's?

C++ can not clear the screen, as indicated in the FAQ Victor pointed
you
to.

Huh? C++ can do a lot of things using the OS specific libraries. Dont
say
C++ cannot clear the screen. Instead, you should say standard C++ cannot
clear the screen.

I guarantee you that I can show you several systems where C++,
standard or not, cannot clear the screen. For the simple reason that
there IS NO SCREEN. One of the reasons C++ does not support a screen
is that it does not require one.


I am sorry, I had put my statement wrongly. But, since the OP asked about
clearing the screen, I assumed he had a screen (a computer monitor).


--
-Ashish
--------------------------------------------------------------------------
Hi! I'm a shareware signature! Send $5 if you use me, send $10 for manual!
http://www.123ashish.com http://www.softwarefreaks.com



Back to top
klaas
Guest





PostPosted: Sat Jun 28, 2003 4:36 pm    Post subject: Re: Clear Screen? Reply with quote

you do not want to use process.h since it is not platform independant,
use stdlib.h instead

regards

pol jak

Unforgiven wrote:

Quote:
Tim Mierzejewski wrote:

How do I clear the text from my screen, other than a bunch of n's or
endl's?


C++ can not clear the screen, as indicated in the FAQ Victor pointed you to.
However, you can ask the OS to do it for you. The most common ways to do
this are 'system("cls");' in Windows and system("clear");' in Linux. The
system function is defined in


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.