Permalink
Browse files

more colors

  • Loading branch information...
1 parent 88249fc commit 2976ccf43a02178290dcbfb5f57bd91a04384146 Dmytro Lytovchenko committed Feb 9, 2014
Showing with 8 additions and 3 deletions.
  1. +6 −1 src/epm.erl
  2. +2 −2 src/epm_core.erl
View
@@ -126,4 +126,9 @@ ansi_color(blue) -> [27 | "[1;34m"];
ansi_color(magenta) -> [27 | "[1;35m"];
ansi_color(cyan) -> [27 | "[1;36m"];
ansi_color(white) -> [27 | "[1;37m"];
-ansi_color(dark_cyan) -> [27 | "[2;36m"].
+
+ansi_color(dark_blue) -> [27 | "[2;34m"];
+ansi_color(dark_red) -> [27 | "[2;31m"];
+ansi_color(dark_white) -> [27 | "[2;37m"];
+ansi_color(dark_green) -> [27 | "[2;32m"];
+ansi_color(dark_cyan) -> [27 | "[2;36m"].
View
@@ -18,8 +18,8 @@ execute(State=#epm_state{}, ["install" | Args]) ->
case Installed of
[] -> ok;
_ ->
- epm:p(white, "Packages already installed:~n"),
- [epm:p(" + ~s~n", [epm:as_string(P)]) || P <- Installed]
+ epm:p(green, "Packages already installed:~n"),
+ [epm:p(dark_green, " + ~s~n", [epm:as_string(P)]) || P <- Installed]
end,
epm:p(white, "Install the following packages? ([y]/n)~n"),
[epm:p(" + ~s~n", [epm:as_string(P)]) || P <- NotInstalled],

0 comments on commit 2976ccf

Please sign in to comment.