summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaat <maat-pub@mageia.biz>2021-04-02 07:50:43 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2021-11-04 20:11:11 +0100
commit1a6df3e1cacf347392dc6ce0d6f9606b1fb1ffd5 (patch)
tree31a3ab951e01db7215de133825d67e9be1341dd9
parentf5edbfc67effe160f9acbaa48bf794c14fc05f84 (diff)
downloadurpmi-1a6df3e1cacf347392dc6ce0d6f9606b1fb1ffd5.tar
urpmi-1a6df3e1cacf347392dc6ce0d6f9606b1fb1ffd5.tar.gz
urpmi-1a6df3e1cacf347392dc6ce0d6f9606b1fb1ffd5.tar.bz2
urpmi-1a6df3e1cacf347392dc6ce0d6f9606b1fb1ffd5.tar.xz
urpmi-1a6df3e1cacf347392dc6ce0d6f9606b1fb1ffd5.zip
More color output for urpmi
-rw-r--r--urpm/msg.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index c1d7a09a..99bedf73 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -80,8 +80,10 @@ sub H {
"Warning" => 'bright_yellow',
"Arg" => 'cyan',
"Question" => 'cyan',
+ "Title" => 'bold',
"Action" => 'cyan',
"Package" => 'bold white',
+ "Medium" => 'white',
"Highlight" => 'bright_yellow',
"Progress" => 'blue',
"Success" => 'bright_green',
@@ -183,7 +185,7 @@ sub format_line_selected_packages {
}
$flush->();
- (sprintf($format_line_format, N("Package"), N("Version"), N("Release"), N("Arch")),
+ (sprintf(H('Title',$format_line_format), N("Package"), N("Version"), N("Release"), N("Arch")),
@lines);
}
sub _format_line_selected_packages {
@@ -207,7 +209,7 @@ sub _format_line_selected_packages {
$i++;
}
- ('(' . ($medium ? N("medium \"%s\"", $medium->{name}) : N("command line")) . ')',
+ (H('Medium','' . ($medium ? N("medium \"%s\"", $medium->{name}) : N("command line")) . ''),
map { sprintf($format_line_format, @$_) } @l);
}