How to clear all previous terminal output which is currently visible?

Discussion in 'Perl Misc' started by Jason Stacy, May 4, 2008.

  1. Jason Stacy

    Jason Stacy Guest

    Assume I have opened a terminal and already performed some commands which produced some
    output lines.

    Then I start a perl script which outputs also some line of text.

    However I want at first all previous output lines in the terminal to be wiped.
    All output should start with an "empty" terminal (of cause beside the prompt).

    How can I wipe all old stuff?

    In Windows command prompt there is a "cls" command but is not working in
    perl/Linux terminals.

    Is there an equivalent command?

    Jason
     
    Jason Stacy, May 4, 2008
    #1
    1. Advertising

  2. (Jason Stacy) wrote:
    >However I want at first all previous output lines in the terminal to be wiped.
    >How can I wipe all old stuff?


    perldoc -q clear: "How do I clear the screen?"

    jue
     
    Jürgen Exner, May 4, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Newgene
    Replies:
    3
    Views:
    7,739
    Terry Reedy
    Aug 3, 2004
  2. Replies:
    0
    Views:
    722
  3. gaurav kashyap
    Replies:
    3
    Views:
    6,655
    Paul Boddie
    Oct 31, 2008
  4. Steve
    Replies:
    2
    Views:
    938
    edicionsdigitals.com edicions digitals xarxa socia
    Dec 7, 2010
  5. John Maclean
    Replies:
    12
    Views:
    180
    Eric Hodel
    Jan 4, 2006
Loading...

Share This Page