Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to clear all previous terminal output which is currently visible? Jason Stacy 05-04-2008
Posted by Jason Stacy on May 4, 2008, 8:17 am
Please log in for more thread options
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


Posted by Jürgen Exner on May 4, 2008, 8:31 am
Please log in for more thread options
jjstacy@yahoo.net (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

Similar ThreadsPosted
How to determine whether output is a terminal? November 21, 2007, 11:28 pm
previous post had no color change March 26, 2006, 9:08 am
start printing at the end of the previous line July 18, 2006, 10:37 am
RegEx - matching previous match February 27, 2008, 5:12 pm
RegEx - matching previous match February 27, 2008, 5:12 pm
Terminal size January 8, 2005, 1:03 am
Terminal emulator February 14, 2006, 2:49 pm
Interacting With A Terminal App March 6, 2006, 4:58 pm
print to terminal November 16, 2006, 5:54 am
Lexical array retaining elements from previous function invocations May 4, 2006, 7:25 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap