Skip to content

raku-community-modules/IRC-TextColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions Status Actions Status Actions Status

NAME

IRC::TextColor - Color/Style text for IRC

SYNOPSIS

use IRC::TextColor;

say ircstyle 'text', :bold, :green;

say irc-style-text 'text', :style<bold>, :color<green>;

DESCRIPTION

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.

EXPORTED SUBROUTINES

ircstyle

say ircstyle("text", :bold, :green);

A shortened function. Like irc-style-text but shorter and with fewer options. But allows specification by style and color directly. Does not allow for setting background color.

irc-style-text

say irc-style-text("text", :$style, :$color, :$bgcolor);

Allows setting of a style, a color and a background color.

Allowed colors are:

white black blue green red brown purple orange yellow
light-green teal light-cyan light-blue pink grey light-grey

Allowed styles are:

bold italic underline inverse

head

ansi-to-irc

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.

say ansi-to-irc($ansi);

AUTHOR

Samantha McVey

Source can be located at: https://github.com/raku-community-modules/IRC-TextColor . Comments and Pull Requests are welcome.

COPYRIGHT AND LICENSE

Copyright 2016 - 2017 Samantha McVey

Copyright 2024, 2026 The Raku Community

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

About

Color and style text for IRC and ANSI terminal color/style to IRC color/style

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages