Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

colorful writing

by ashok (Sexton)
on Jan 04, 2001 at 10:26 UTC ( [id://49705]=perlquestion: print w/replies, xml ) Need Help??

ashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am looking for some hints/examples on writing output in colors on Windows platform in Perl. I tried with this code
use Term::ANSIColor; print color("red"),"Hello",color("reset");
But I am getting some junk characters. Can You pl. help me? Thanks Ashok

Replies are listed 'Best First'.
Re: colorful writing
by rlk (Pilgrim) on Jan 04, 2001 at 11:05 UTC
Re: colorful writing
by t0mas (Priest) on Jan 04, 2001 at 12:55 UTC
    You will have to load the ANSI driver (ANSI.SYS) in order to use ANSI colors on your win32 command prompt. Instructions on how you do this on a NT box can be found here and here.

    /brother t0mas

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://49705]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 01:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found