Results 1 to 10 of 10
Like Tree7Likes
  • 1 Post By JosAH
  • 3 Post By Fubarable
  • 3 Post By DarrylBurke

Thread: is there any method for clear screen?

  1. #1
    Join Date
    Sep 2011
    Location
    India
    Posts
    67
    Rep Power
    0

    Default is there any method for clear screen?

    In c/cpp we have a method to clear the screen. Is there any method to clear the screen.
    And How we clear the screen in particular position in program?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,375
    Blog Entries
    7
    Rep Power
    20

    Default Re: is there any method for clear screen?

    Quote Originally Posted by chandrasekhar.melam View Post
    In c/cpp we have a method to clear the screen. Is there any method to clear the screen.
    And How we clear the screen in particular position in program?
    C/C++ doesn't have a 'clear screen' functionality either; maybe some implementations have it for certain operating systems. There is a jcurses implementation that can do it for you. Google is your friend.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Join Date
    Sep 2011
    Location
    India
    Posts
    67
    Rep Power
    0

    Default Re: is there any method for clear screen?

    we have a method clrscr() to clear the screen, haven't we?
    In similar way which method we use in java to clear screen.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,375
    Blog Entries
    7
    Rep Power
    20

    Default Re: is there any method for clear screen?

    Quote Originally Posted by chandrasekhar.melam View Post
    we have a method clrscr() to clear the screen, haven't we?
    In similar way which method we use in java to clear screen.
    Was my previous reply written in invisible ink again?

    kind regards,

    Jos
    KevinWorkman likes this.
    cenosillicaphobia: the fear for an empty beer glass

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: is there any method for clear screen?

    Quote Originally Posted by JosAH View Post
    Was my previous reply written in invisible ink again?
    What previous reply?

    kinder regards,

    Pete
    DarrylBurke, JosAH and awinston like this.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,184
    Rep Power
    19

    Default Re: is there any method for clear screen?

    Quote Originally Posted by JosAH View Post
    Was my previous reply written in invisible ink again?

    kind regards,

    Jos
    No, but it was clearing my screen before I could read it.

    kind regarder,

    db
    Fubarable, JosAH and awinston like this.

  7. #7
    Join Date
    Sep 2011
    Location
    India
    Posts
    67
    Rep Power
    0

    Default Re: is there any method for clear screen?

    in c language we have a method clrscr() to clear the screen. Like, How we clear the screen in java?
    i want accurate answer.......

  8. #8
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,375
    Blog Entries
    7
    Rep Power
    20

    Default Re: is there any method for clear screen?

    Quote Originally Posted by chandrasekhar.melam View Post
    in c language we have a method clrscr() to clear the screen. Like, How we clear the screen in java?
    i want accurate answer.......
    You're repeating yourself again; reread my first reply: C, nor C++ have that functionality; maybe some implementations for certain operating systems have it, but there is no portable solution for what you're asking for.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  9. #9
    Join Date
    Sep 2011
    Location
    India
    Posts
    67
    Rep Power
    0

    Default Re: is there any method for clear screen?

    sory for asking same qustion. but iam not satisfied your 1st reply.
    Bcz All c compilers have clrscr() function to clear, isn't it?(All operating system has the clrscr() method)

  10. #10
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,375
    Blog Entries
    7
    Rep Power
    20

    Default Re: is there any method for clear screen?

    Quote Originally Posted by chandrasekhar.melam View Post
    sory for asking same qustion. but iam not satisfied your 1st reply.
    Bcz All c compilers have clrscr() function to clear, isn't it?(All operating system has the clrscr() method)
    Short answer: no they haven't; you think too Microsoftish. Long answer (and I repeat myself here too): have a look at jcurses, it can do it for you.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 1
    Last Post: 04-26-2010, 01:02 PM
  2. clear screen prompt using java code
    By krunalpatel1410 in forum Advanced Java
    Replies: 9
    Last Post: 04-04-2009, 12:47 AM
  3. Need For Clear Screen
    By adithya4u4ever in forum New To Java
    Replies: 8
    Last Post: 03-08-2009, 08:41 AM
  4. Clear Screen in Console based programs
    By kirly in forum New To Java
    Replies: 5
    Last Post: 02-05-2009, 05:59 AM
  5. Clear screen in java
    By lenny in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 09:43 AM

Posting Permissions

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