How to clear screen?

This is a discussion on How to clear screen? within the C++ Programming forums, part of the General Programming Boards category; I have started using Bloodshed Dev C++. What is the function to clear screen. I tried clrscr(). It is not ...

  1. #1
    Logic Programmer logicwonder's Avatar
    Join Date
    Nov 2005
    Location
    Kerala, India
    Posts
    52

    Question How to clear screen?

    I have started using Bloodshed Dev C++. What is the function to clear screen. I tried clrscr(). It is not working. Please help!!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    You can't clear the screen. The National Academy of C has determined that clearing the screen has been found to harm pixels.

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    15
    not to mention the liquid cristals off your spanking new 17'' screen



    p.s. : it's not a function, just a command...or more like a secret kabbalistic incantation.

  5. #5
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    you could always use

    system("CLS")

  6. #6
    Logic Programmer logicwonder's Avatar
    Join Date
    Nov 2005
    Location
    Kerala, India
    Posts
    52

    this one works..

    Thank you twomers.
    Do you know why some compilers doesnt support the useful clrscr() ?
    L GIK wins!!!
    Salutes from logicwonder
    Enjoy programming

  7. #7
    Registered User
    Join Date
    Aug 2003
    Posts
    1,203
    because clearing the screen is nonstandard and nonportable?
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  8. #8
    Logic Programmer logicwonder's Avatar
    Join Date
    Nov 2005
    Location
    Kerala, India
    Posts
    52
    OK Shakti.
    Thanking everyone..
    L GIK wins!!!
    Salutes from logicwonder
    Enjoy programming

  9. #9
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Harm pixels? Hows that possible? When playing a game your screen easily refreshs 60x a second. So hows one little sweep cause harm to your pixels? And if its a different form of refreshing, why are people not using the refresh function that refreshs games?

    Or am I totaly out of whack on this?

  10. #10
    Registered User
    Join Date
    Aug 2003
    Posts
    1,203
    Your joke detector is broken.
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  11. #11
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    I've been told a rock picks up on a joke faster than I do. Apparently I was reading it to seriously .

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, 07: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, 07:36 AM
  5. Yet another clear screen thread :D
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 11-20-2003, 04:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21