Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Resetting your Terminal for each line printed

by Fletch (Chancellor)
on Sep 27, 2006 at 14:10 UTC ( #575156=note: print w/ replies, xml ) Need Help??


in reply to Resetting your Terminal for each line printed

There's Term::Cap which would let you find the current terminal's clear-to-end-of-line which you could print after your CR.

Of course if you want to go the whole way there's also Curses.

Update: The other solutions hard coding VT100-esque sequences are going to work on probably 70+% of the terminals you'll encounter (xterm, kconsole, iTerm, et al), but use Term::Cap if you want to make sure you work regardless of the terminal (presuming correct entries in the system's termcap file :).


Comment on Re: Resetting your Terminal for each line printed

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575156]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-07 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls