Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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 chanting in the Monastery: (3)
As of 2018-03-21 00:08 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (262 votes). Check out past polls.