Jon Portnoy > IRC-Toolkit-0.087000 > IRC::Toolkit::Colors

Download:
IRC-Toolkit-0.087000.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.087000   Source   Latest Release: IRC-Toolkit-0.088002

NAME ^

IRC::Toolkit::Colors - IRC color code utilities

SYNOPSIS ^

  my $str = color('red', "red text") ." other text";

DESCRIPTION ^

IRC utilities for adding color/formatting codes to a string.

color

  my $code = color('red');
  my $str = color('bold') . "bold text" . color() . "normal text";
  my $str = color('bold', "bold text");

Add mIRC formatting/color codes to a string.

Valid formatting codes are:

  normal 
  bold 
  underline 
  reverse 
  italic

Valid color codes are:

  white
  black
  blue
  light_blue
  cyan
  green
  light_green
  red
  brown
  purple
  orange
  yellow
  teal
  pink
  gray
  light_gray

AUTHOR ^

Jon Portnoy <avenj@cobaltirc.org>

syntax highlighting: