App::KGB::Painter(3pm)

App::KGB::Painter3pm

Overview

App::KGB::Painter is a simple class encapsulating coloring of KGB messages.

Constructor

new

 my $p = App::KGB::Painter->new({ color_codes => { ... }, item_colors => { ... } } );

color_codes is a hash with the special symbols interpreted as coloring commands by IRC clients.

item_colors is another hash describing what colors to apply to different parts of the messages.

Methods

colorize category text

Applies the colors of the style category to the given text.

colorize_change change

Given a change, applies colors to its files depending on the type of the change -- update, addition, deletion or property change.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

From kgb-client 1.61-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.