Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: the ghost of xmas past.

by Brutha (Friar)
on Dec 17, 2004 at 11:44 UTC ( #415610=note: print w/replies, xml ) Need Help??


in reply to the ghost of xmas past.

Agree, very nice! ++

I confess I destroyed it a little bit, to get the ANSI colour effects even on windows with

use Win32::Console::ANSI;

Update: ANSI is long since I used it last, but shouldn't the middle part of the first line read:

... for(1..10){print"\e[2J ...

instead of

... for(1..10){print"\ec ...

???

And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)

Replies are listed 'Best First'.
Re^2: the ghost of xmas past.
by teamster_jr (Curate) on Dec 21, 2004 at 17:56 UTC
    hmm
    yes you can use \e[2J (erase screen and return home), although \ec (reset device) does basically the same thing, and is 2 (obv) chars cheaper.

    you can find more here

    al

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://415610]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2017-12-17 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (462 votes). Check out past polls.

    Notices?