Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Resetting your Terminal for each line printed

by liverpole (Monsignor)
on Sep 27, 2006 at 11:02 UTC ( #575125=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "\e[K";
    
  2. or download this
    print  "\e[H";              # Put the cursor on the first line
    print  "\e[J";              # Clear from cursor to end of screen
    ...
    print  "\e[m";              # Turn off character attributes (eg. color
    +s)
    printf "\e[%dm", $N;        # Set color to $N (for values of 30-37, or
    + 100-107)
    printf "\e[%d;%dH", $R, $C; # Put cursor at row $R, column $C (good fo
    +r "drawing")
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-10-23 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls