Commit d9a6252d756bf30275d9fba14180692a9753b41f

Thomas de Grivel 2023-02-28T17:14:14

add colors

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/rbpkg/log.rb b/lib/rbpkg/log.rb
index 907112f..2d2a138 100644
--- a/lib/rbpkg/log.rb
+++ b/lib/rbpkg/log.rb
@@ -166,6 +166,8 @@ class String
       "\33[0;31m" => "<span style=\"color: red;\">",
       "\33[0;34m" => "<span style=\"color: blue;\">",
       "\33[0;35m" => "<span style=\"color: purple;\">",
+      "\33[0;91m" => "<span style=\"font-weight: bold; color: red;\">",
+      "\33[0;92m" => "<span style=\"font-weight: bold; color: green;\">",
       "\33[0m" => "</span>"
     }
     s = to_html