Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Answer: How do you clear the screen?

by cleen (Pilgrim)
on Jun 19, 2000 at 17:20 UTC ( #18787=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > How do you clear the screen? - Answer contributed by cleen

use Term::Cap. use the POSIX module to probe certain features of the terminal.
#!/usr/local/bin/perl use POSIX; use Term::Cap; # General terminal line I/O my $termios = new POSIX::Termios; $termios->getattr; # Extract the entry of the terminal type my $term = Term::Cap->Tgetent( { OSPEED => $termios->getospeed } ); # clear $term->Tputs('cl', 1, STDOUT);

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2016-12-06 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (102 votes). Check out past polls.