1App::KGB::Painter(3)  User Contributed Perl Documentation App::KGB::Painter(3)
2
3
4

NAME

6       App::KGB::Painter -- add color to KGB notifications
7

DESCRIPTION

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

CONSTRUCTOR

13   new
14        my $p = App::KGB::Painter->new({ color_codes => { ... }, item_colors => { ... } } );
15
16       color_codes is a hash with the special symbols interpreted as coloring
17       commands by IRC clients.
18
19       item_colors is another hash describing what colors to apply to
20       different parts of the messages.
21

METHODS

23       colorize category text
24           Applies the colors of the style category to the given text.
25
26       colorize_change change
27           Given a change, applies colors to its files depending on the type
28           of the change -- update, addition, deletion or property change.
29
31       Copyright (c) 2013, 2018, Damyan Ivanov dmn@debian.org.
32
33       This module is free software; you can redistribute it and/or modify it
34       under the terms of the GNU General Public License as published by the
35       Free Software Foundation; either version 2 of the License, or (at your
36       option) any later version.
37
38       This program is distributed in the hope that it will be useful, but
39       WITHOUT ANY WARRANTY; without even the implied warranty of
40       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
41       General Public License for more details.
42
43       You should have received a copy of the GNU General Public License along
44       with this program; if not, write to the Free Software Foundation, Inc.,
45       51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
46
47
48
49perl v5.34.0                      2022-01-20              App::KGB::Painter(3)
Impressum