Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: How to print colored word in text file

by RichardK (Parson)
on Jun 21, 2013 at 11:05 UTC ( #1040126=note: print w/replies, xml ) Need Help??

in reply to How to print colored word in text file

Term::ANSIColor will let you write coloured text to the screen. And you can store those ANSI codes in a text file, if that's any use to you?

  • Comment on Re: How to print colored word in text file

Replies are listed 'Best First'.
Re^2: How to print colored word in text file
by hdb (Monsignor) on Jun 21, 2013 at 11:16 UTC

    Have you been able to use this successfully in Windows cmd.exe? I have tried but it did not work (at least in Windows 7 that I have).

      Same problem as hdb; may be user-error, but I can't recall ever (on M$ osen) making Term::ANSIColor work as advertized.

      If you didn't program your executable by toggling in binary, it wasn't really programming!

        I haven't tried doing colored text in a Windows command prompt before. However, I know that Damian Conway's Regexp::Debugger module is definitely creating colored text within a command prompt on Windows 7. It looks like he's using Win32::Console::ANSI to get the colored text to show up in the command prompt.

      No, sorry but I don't run windows. I thought it worked to some limited extent on windows, but I guess I'm wrong.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1040126]
[Corion]: 1nickt: Not in the general sense... I only have very specific crawlers, but not a simple crawler like that ;) But maybe that would be a good application/( stress) test for Future::HTTP to parallelize
[Corion]: Also, a good application to test my API to rate limit things

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2017-10-18 11:30 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.