473,383 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to clear console screen?

There is a posted how to on the microsoft kb that examples
how to do this by creating a class that blanks all the
characters displayed one by one, then you call that class.
I am searching for a system call or something that I can
directly used in my console application rather than
including the class from the kb article. In a batch file,
the command exist, you just use the CLS command. Something
similar to this is what I am hunting for but haven't found
so far. Any help?

tia
gm

Jul 21 '05 #1
4 1543
<gm******@nospam.xyz> schrieb im Newsbeitrag
news:41***************@ev1.net...
There is a posted how to on the microsoft kb that examples
how to do this by creating a class that blanks all the
characters displayed one by one, then you call that class.
I am searching for a system call or something that I can
directly used in my console application rather than
including the class from the kb article. In a batch file,
the command exist, you just use the CLS command. Something
similar to this is what I am hunting for but haven't found
so far. Any help?


http://groups.google.de/groups?selm=...TNGP12.phx.gbl

Cheers

Arne Janning
Jul 21 '05 #2
Arne Janning wrote:
<gm******@nospam.xyz> schrieb im Newsbeitrag
news:41***************@ev1.net...
There is a posted how to on the microsoft kb that examples
how to do this by creating a class that blanks all the
characters displayed one by one, then you call that class.
I am searching for a system call or something that I can
directly used in my console application rather than
including the class from the kb article. In a batch file,
the command exist, you just use the CLS command. Something
similar to this is what I am hunting for but haven't found
so far. Any help?


http://groups.google.de/groups?selm=...TNGP12.phx.gbl

Cheers

Arne Janning


Thanks for the reply, but that's the code I was referring to in my OP that I
was wanting to aviod!
gm
Jul 21 '05 #3
<gm******@nospam.xyz> schrieb
Thanks for the reply, but that's the code I was referring to in my OP that
I
was wanting to aviod!


There is no other possibility in .NET 1.1.

..NET 2.0 will have a Console.Clear() Method.

Cheers

Arne Janning
Jul 21 '05 #4
Arne Janning wrote:
<gm******@nospam.xyz> schrieb
Thanks for the reply, but that's the code I was referring to in my OP that
I
was wanting to aviod!


There is no other possibility in .NET 1.1.

.NET 2.0 will have a Console.Clear() Method.

Cheers

Arne Janning


Thanks Arne, I'll just do it the hard way for a while then...
gm
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Dave | last post by:
Hi, I have done some research, trying to Clear The Screen in java code. The first option was the obv: system.out.print("\n\n\n\n\n\n\n\n\n\n\n\n"); then i heard about this method:...
18
by: Tim Mierzejewski | last post by:
How do I clear the text from my screen, other than a bunch of \n's or endl's? Tim M.
20
by: ritchie | last post by:
Hi, I am trying to clear the screen in my program. I am loking for something that will work on all compilers, especially Borland & MS Visual Studio 6. On Visual studio I used 'system("cls");'...
2
by: Sam | last post by:
Sorry one of those "C" type transistion questions which I could find no answer for in existing C# text books. In C, I used to use the system function call to execute programs synchronously. ...
11
by: sebplays | last post by:
Hi, I seach function for clear screen in VB.Net for console application. Please help me
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.