#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    36
    Rep Power
    11

    Clearing the Screen of a Console


    Hello, .. I'm new here.

    I am making a simple console application and would like to know what the command is to clear the screen.

    sorta like this in cpp:
    Code:
    system(clr);
    Thanks!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    109
    Rep Power
    12
    .NET's console class is just a wrapper for the Win32 API, to add additional functionality you'll have to write your own wrapper (as Microsoft thought it a good idea to seal the Console class).

    I'm sure you can probably find some free wrappers on the net, 'WinConsole' comes to mind.

IMN logo majestic logo threadwatch logo seochat tools logo