App-calx
view release on metacpan or search on metacpan
lib/App/calx.pm view on Meta::CPAN
280281282283284285286287288289290291292293294295296297298299300
sprintf
(
"%s %s %s"
,
_rpad(21,
$moncals
[
$i
+0][0][
$_
]//
""
),
_rpad(21,
$moncals
[
$i
+1][0][
$_
]//
""
),
_rpad(21,
$moncals
[
$i
+2][0][
$_
]//
""
));
}
last
if
$i
+3 >=
$j
;
$i
+= 3;
push
@lines
,
""
;
}
# print legends
for
my
$i
(0..
@hol
-1) {
if
(
$hol
[1]{module}) {
my
@notes
= (
$hol
[
$i
]{module});
push
@notes
, @{
$hol
[
$i
]{tags}}
if
$hol
[1]{tags};
push
@lines
,
""
if
$i
== 0;
push
@lines
,
sprintf
(
"%s%2d %s = %s\e[0m"
,
ansifg(assign_rgb_light_color(
$hol
[
$i
]{module})),
$hol
[
$i
]{day},
$short_month_names
->[
$hol
[
$i
]{month}-1],
"$hol[$i]{summary} ("
.
join
(
", "
,
@notes
).
")"
,
);
( run in 0.327 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )