diff options
author | Andinus <andinus@nand.sh> | 2020-06-14 05:20:11 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-06-14 05:20:11 +0530 |
commit | 6ea9b8dbcdeda05ea7dd8b4e4a72b3c01a731313 (patch) | |
tree | 75352f36a79df278e43b7228c81564b30cc96b1a | |
parent | 70321ff435a19e146c625a67d4895fad051a82bf (diff) | |
download | ara-6ea9b8dbcdeda05ea7dd8b4e4a72b3c01a731313.tar.gz |
Make text on output readable
-rwxr-xr-x | ara.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ara.pl b/ara.pl index 682dfb4..f3d367c 100755 --- a/ara.pl +++ b/ara.pl @@ -248,7 +248,7 @@ foreach my $i ( 0 ... scalar @$statewise - 1 ) { and not $no_delta ) { my $delta_confirmed = $statewise->[$i]{deltaconfirmed}; if ( $delta_confirmed > 1000 ) { - $confirmed .= LOCALCOLOR ON_MAGENTA + $confirmed .= LOCALCOLOR BLACK ON_MAGENTA sprintf " (%+d)", $statewise->[$i]{deltaconfirmed}; } elsif ( $delta_confirmed > 500 ) { $confirmed .= LOCALCOLOR BRIGHT_MAGENTA @@ -262,7 +262,7 @@ foreach my $i ( 0 ... scalar @$statewise - 1 ) { my $delta_recovered = $statewise->[$i]{deltarecovered}; if ( $delta_recovered > 1000 ) { - $recovered .= LOCALCOLOR ON_GREEN + $recovered .= LOCALCOLOR BLACK ON_GREEN sprintf " (%+d)", $statewise->[$i]{deltarecovered}; } elsif ( $delta_recovered > 500 ) { $recovered .= LOCALCOLOR BRIGHT_GREEN @@ -276,8 +276,8 @@ foreach my $i ( 0 ... scalar @$statewise - 1 ) { my $delta_deaths = $statewise->[$i]{deltadeaths}; if ( $delta_deaths > 100 ) { - $state = LOCALCOLOR ON_RED $state; - $deaths .= LOCALCOLOR ON_RED + $state = LOCALCOLOR BLACK ON_RED $state; + $deaths .= LOCALCOLOR BLACK ON_RED sprintf " (%+d)", $statewise->[$i]{deltadeaths}; } elsif ( $delta_deaths > 50 ) { $state = LOCALCOLOR BRIGHT_RED $state; |