Thread: Console Question

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    1

    Console Question

    Does any know one how to use c internal function to do this job

    e.g. cls in window and clear in unix

  2. #2
    ---
    Join Date
    May 2004
    Posts
    1,379
    There is no standard way of doing that. So one way that works in windows will not work in unix and vice versa. Read the faq.

  3. #3
    Registered User
    Join Date
    Apr 2004
    Posts
    173
    You may be looking at the system() call, but there are security issues regarding this method to clear the screen - predominantly the program (cls or clear) can be replaced by a malicious program - not to mention it's slow as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. One process with two console windows
    By siavoshkc in forum Windows Programming
    Replies: 8
    Last Post: 01-30-2009, 04:13 PM
  2. Simple Novice Question: MS DOS app. a console?
    By renurv in forum C++ Programming
    Replies: 7
    Last Post: 12-30-2005, 02:42 PM
  3. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  4. Question type program for beginners
    By Kirdra in forum C++ Programming
    Replies: 7
    Last Post: 09-15-2002, 05:10 AM
  5. Win2K/XP console question
    By d00b in forum Windows Programming
    Replies: 8
    Last Post: 08-05-2002, 01:43 PM