Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Problem printing in colors

by salva (Canon)
on Apr 28, 2005 at 16:15 UTC ( [id://452378]=note: print w/replies, xml ) Need Help??


in reply to Problem printing in colors

because perl knows nothing about ANSI escape sequences, it just see them as normal characters and count them inside %-25s formats.

Insert them with additional formaters, i.e:

printf "\n\t%s%-25s%s| %s%-25s%s\n", RED, 'Filename', RESET, UNDERLINE +, 'Comment', RESET;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-16 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found