Skip Menu |

This queue is for tickets about the String-Tagged CPAN distribution.

Report information
The Basics
Id: 83030
Status: resolved
Priority: 0/
Queue: String-Tagged

People
Owner: Nobody in particular
Requestors: ALTREUS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Extract terminal example into new module
Perhaps with a nice interface to abstract the colours from the escape codes String::Tagged::Term->new("string")->red(0,1)->blue(-1,1)->bold()
On Tue Jan 29 09:45:52 2013, ALTREUS wrote: Show quoted text
> Perhaps with a nice interface to abstract the colours from the escape > codes > > String::Tagged::Term->new("string")->red(0,1)->blue(-1,1)->bold()
Finally write a module `String::Terminal::Tagged`. Not quite sure how neatest to interpret your suggestion there, but maybe it would be String::Tagged::Terminal->new("string") ->apply_tag( 0, 1, fgindex => 1 ) ->apply_tag( -1, 1, fgindex => 4 ) ->apply_tag( -1, -1, bold => 1 ); -- Paul Evans