Thread: How do you clear the screen

  1. #1
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310

    Question How do you clear the screen

    How do I clear all the text off the screen in DOS-mode?

    Thanks,
    napKIN

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    101
    Turn off the monitor.

    Seriously, read the FAQ.
    - lmov

  3. #3
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    imov, dont post unless you're going to help. i clear the screen with the system command:
    Code:
    system("CLS");

  4. #4
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Originally posted by Leeman_s
    imov, dont post unless you're going to help. i clear the screen with the system command:
    Code:
    system("CLS");
    1-IMOV's post wasn't useless. He told him to read the FAQ
    2-If you would have read the FAQ you'd know that depending on your compiler/OS you can't just use system("CLS").

  5. #5
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    Heh, I guess so Imov....

    Thanks alot Leeman, it seems you're the one who always answeres my questions
    Do you need any header files for that?

    napKIN

  6. #6
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    I read the FAQ, it extremely unhelpful and it tells me to read the FAQ...

    FAQ on clearing screen

    All I learned was the pros and cons of tossing my monitor out the window...

    napKIN

  7. #7
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    That's because you didn't read the FAQ. You read a thread on the FAQ board.

    Here's a link to the FAQ.

    http://www.cprogramming.com/boardfaq.html

    No one is trying to not help you. But TOO many times it has been explained here that depending on the OS/Compiler/app type (console/true Dos) there isn't a standard way to clear the screen. Leeman obviously doesn't know this (probably hasn't read the FAQ), so he told you what works for him. Which may or may not work for you.

    The FAQ clearly explains all this. That's why it's there.

  8. #8
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    My mistake. I'll be sure to read it.

    Thanks,

    napKIN

  9. #9
    napKINfolk.com napkin111's Avatar
    Join Date
    Apr 2002
    Posts
    310
    Wow! Thats a lot of good stuff. Thanks to Lightatdawn!

    napKIN

  10. #10
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    notice i said the words "i use...". that means that I USE that way. if i didnt know it was compiler specific, i would have said "YOU CAN USE". and jdinger, *I THINK* your first reply was pretty pointless, but lets not continue to argue. NOTE: *I THINK*

  11. #11
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Leeman, I'm not arguing here. I was simply trying to make sure Napkin ( as well as you ) knew that the FAQ explained the possible ways to clear the screen, etc. My first reply was not pointless because I was trying to point him to the FAQ.

    True you said "I use" but to someone who's new to the board and programming that's as good as saying "do this". We have to be careful what we post to help (even if it's in good intentions) just because we could lead someone to bad coding practices/ more problems than what they started with. Trust me on this ( Prelude set me straight a few times ).

    I was never intending to argue with you ( notice I never once used an exclamation point are all CAPS or anything ). The only reason I bolded certain words was to make sure Napkin understood the situation entirely. I never meant to upset you.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CLear Screen Routine
    By AQWst in forum C++ Programming
    Replies: 4
    Last Post: 12-13-2004, 08:24 PM
  2. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 02:41 AM
  3. Getting a clear screen...
    By Finchie_88 in forum C++ Programming
    Replies: 13
    Last Post: 09-03-2004, 05:38 PM
  4. Clear Screen Again!!!
    By trang in forum C Programming
    Replies: 3
    Last Post: 12-13-2003, 08:36 AM
  5. Yet another clear screen thread :D
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 11-20-2003, 05:14 AM