Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^8: Text::ANSI::Util for wrapping "colorful" text

by ibm1620 (Hermit)
on Aug 06, 2022 at 21:31 UTC ( [id://11145986]=note: print w/replies, xml ) Need Help??


in reply to Re^7: Text::ANSI::Util for wrapping "colorful" text
in thread Text::ANSI::Util for wrapping "colorful" text

Doesn't look like it properly accounts for the non-printingness of escape sequences.

Input: $string= qq{\e[30mDear Prudence won't you want so much glare coming onto my vis +or \e[3m\e[1m\e[32m[FLIK]\e[0m\e[30m shadow \e[3m\e[1m\e[32m[BLAM BLA +M BLAM]\e[0m\e[30m helmet actually gets the shadow.\e[0m} ta_wrap($string, 68, 5, 5) --> ********************************************************************| Dear Prudence won't you want so much glare coming onto my visor [FLIK] shadow [BLAM BLAM BLAM] helmet actually gets the shadow. ********************************************************************|

Replies are listed 'Best First'.
Re^9: Text::ANSI::Util for wrapping "colorful" text
by tybalt89 (Monsignor) on Aug 06, 2022 at 22:46 UTC

Log In?
Username:
Password:

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

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

    No recent polls found