|
-
January 12th, 2005, 07:29 AM
#1
Clear screen character
I'd like to know, please, if there is a single character which will clear a DOS (cmd) screen. A character based CLS, if you will.
Motivation: On my WinXP PRO system, I am using PHP from the command line to run a program which produces output to my DOS box (that I'm running PHP from). This program will run for quite a while (hours) and from time to time, I'd like to update the stats that the user (me) will see on the screen.
Ways I don't like: Putting in a bunch of newlines (whether it be 0 or a thousand) between stat updating. If the number is few, the screen is very busy/messy and if the number is large, the output will always be at the bottom of the screen (and I don't know how to programatically find the number of lines the DOS box has (I've usually stretch it)).
Thanks,
Csaba Gabor
-
September 20th, 2005, 03:11 PM
#2
Clear screen character
Found this on the Web
http://www.scit.wlv.ac.uk/cbook/chap1.Codes.html
014 0x0c "\f" Ctrl-L FF New Page or Clear Screen
Similar Threads
-
By Dblurred in forum Video Adapter/Monitor Drivers
Replies: 0
Last Post: October 28th, 2004, 07:35 PM
-
By ttony in forum Tech-To-Tech
Replies: 3
Last Post: October 16th, 2002, 08:01 PM
-
By Thunderwind in forum Programming And Web Design
Replies: 5
Last Post: December 20th, 2001, 12:30 PM
-
By cccherbal in forum Programming And Web Design
Replies: 0
Last Post: October 15th, 2001, 11:35 AM
-
By goldmeier in forum Windows NT/2000
Replies: 2
Last Post: September 27th, 2000, 10:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks