line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Term::ExtendedColor::Dzen; |
2
|
1
|
|
|
1
|
|
70786
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
35
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
BEGIN { |
6
|
1
|
|
|
1
|
|
5
|
use Exporter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
52
|
|
7
|
1
|
|
|
1
|
|
6
|
use vars qw($VERSION @ISA @EXPORT_OK %EXPORT_TAGS); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
131
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
3
|
$VERSION = '0.004'; |
10
|
1
|
|
|
|
|
18
|
@ISA = qw(Exporter); |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
|
|
4
|
@EXPORT_OK = qw( |
13
|
|
|
|
|
|
|
fgd |
14
|
|
|
|
|
|
|
bgd |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
232
|
%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__ |