Perl 6 module to color and style text for IRC and ANSI terminal color/style to IRC color/style
Branch: master
Clone or download
Latest commit d299484 May 16, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
IRC
t Accept any type as "text" May 2, 2017
.gitignore v0.1.1 have all commands return copies and rename routines Dec 15, 2016
.travis.yml Use zef instead of panda for Travis CI May 2, 2017
META6.json Bump version to 0.3.0 May 16, 2017
README.md Accept any type as "text" May 2, 2017

README.md

IRC::TextColor

A plugin to style and color text for IRC. It can also convert the ANSIColor text and style from your terminal to IRC Text and style.

sub ircstyle

sub ircstyle(
    Str() $text,
    *%args
) returns Mu

a shortened function. Like irc-style-text but you can use shorter versions like C<ircstyle('text', :bold, :green)

sub irc-style-text

sub irc-style-text(
    Str() $text is copy, 
    :$style = 0, 
    :$color = 0, 
    :$bgcolor = 0
) returns Str

styles and colors text. returns a copy. Colors allowed: white, blue, green, red, brown, purple, orange, yellow, light_green, teal, light_cyan, light_blue, pink, grey, light_grey.

sub ansi-to-irc

sub ansi-to-irc(
    Str() $text is copy
) returns Str

Convert ANSI style/colored text from your terminal output to IRC styled/colored text. Supports both foreground and background color, as well as italic, underline and bold.