Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 taking refuge in the Monastery: (8)
As of 2015-07-06 15:34 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 (77 votes), past polls