Clear screen character
Results 1 to 2 of 2

Thread: Clear screen character

  1. #1
    Registered User
    Join Date
    Jan 2005
    Location
    Vienna
    Posts
    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

  2. #2
    Registered User
    Join Date
    Sep 2005
    Posts
    1

    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

  1. NEC FE1250 screen distorting
    By Dblurred in forum Video Adapter/Monitor Drivers
    Replies: 0
    Last Post: October 28th, 2004, 07:35 PM
  2. Post screen
    By ttony in forum Tech-To-Tech
    Replies: 3
    Last Post: October 16th, 2002, 08:01 PM
  3. C language How to zero fill a float varible
    By Thunderwind in forum Programming And Web Design
    Replies: 5
    Last Post: December 20th, 2001, 12:30 PM
  4. [RESOLVED] change character on screen
    By cccherbal in forum Programming And Web Design
    Replies: 0
    Last Post: October 15th, 2001, 11:35 AM
  5. screen resolution
    By goldmeier in forum Windows NT/2000
    Replies: 2
    Last Post: September 27th, 2000, 10:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •