line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Term::ExtendedColor::Dzen; |
2
|
1
|
|
|
1
|
|
56820
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
BEGIN { |
6
|
1
|
|
|
1
|
|
3
|
use Exporter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
45
|
|
7
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION @ISA @EXPORT_OK %EXPORT_TAGS); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
103
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
3
|
$VERSION = '0.008'; |
10
|
1
|
|
|
|
|
13
|
@ISA = qw(Exporter); |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
4
|
@EXPORT_OK = qw( |
13
|
|
|
|
|
|
|
fgd |
14
|
|
|
|
|
|
|
bgd |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
198
|
%EXPORT_TAGS = ( |
18
|
|
|
|
|
|
|
attributes => [ qw(fgd bgd) ], |
19
|
|
|
|
|
|
|
all => [ @EXPORT_OK ], |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub fgd { |
25
|
0
|
0
|
|
0
|
1
|
|
if(!@_) { |
26
|
0
|
|
|
|
|
|
return "^fg()" |
27
|
|
|
|
|
|
|
} |
28
|
0
|
|
|
|
|
|
my ($color, $data) = @_; |
29
|
0
|
0
|
|
|
|
|
$color = "#$color" unless $color =~ m/^#/; |
30
|
|
|
|
|
|
|
|
31
|
0
|
0
|
|
|
|
|
return (defined($data)) |
32
|
|
|
|
|
|
|
? "^fg($color)$data^fg()" |
33
|
|
|
|
|
|
|
: "^fg($color)" |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub bgd { |
37
|
0
|
0
|
|
0
|
1
|
|
if(!@_) { |
38
|
0
|
|
|
|
|
|
return "^bg()" |
39
|
|
|
|
|
|
|
} |
40
|
0
|
|
|
|
|
|
my ($color, $data) = @_; |
41
|
0
|
0
|
|
|
|
|
$color = "#$color" unless $color =~ m/^#/; |
42
|
|
|
|
|
|
|
|
43
|
0
|
0
|
|
|
|
|
return (defined($data)) |
44
|
|
|
|
|
|
|
? "^bg($color)$data^bg()" |
45
|
|
|
|
|
|
|
: "^bg($color)" |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__END__ |