Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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
    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


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2018-07-23 10:07 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (462 votes). Check out past polls.