From 1a6df3e1cacf347392dc6ce0d6f9606b1fb1ffd5 Mon Sep 17 00:00:00 2001 From: Maat Date: Fri, 2 Apr 2021 07:50:43 +0200 Subject: More color output for urpmi --- urpm/msg.pm | 6 ++++-- 1 file 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); } -- cgit v1.2.1