![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Is it possible to include colored text in formatted output using writeby fireblood (Scribe) |
on May 11, 2023 at 22:56 UTC ( [id://11152111]=note: print w/replies, xml ) | Need Help?? |
Here is what I currently have. I'm defining the format in an eval instruction because later I plan to set the length of the field based on the width of the screen window, but at present it is as follows:
Later on down I have:
I know that I will need to add double-tildes (~~) to the line in the format definition to make the text that I want to display to flow to as many subsequent lines as necessary to accommodate the entire text of the message, but for now I'm just focusing on getting the colored text elements to be properly rendered in just the first line before going on to that. Thanks for looking at this.
In Section
Seekers of Perl Wisdom
|
|