diff options
author | Heinz N. Gies <heinz@licenser.net> | 2015-09-21 20:15:15 +0200 |
---|---|---|
committer | Heinz N. Gies <heinz@licenser.net> | 2015-09-21 20:15:15 +0200 |
commit | a6f067cb045fc008a5f78da03669f40755fb8d46 (patch) | |
tree | 5b000c8834d80dd4690297f8852f3e00e8461ab1 /src | |
parent | 5ad1687fe504199a63a9c4623fd3c7b1fe49e8fc (diff) |
Add missing colors to cfmt
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_dialyzer_format.erl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/rebar_dialyzer_format.erl b/src/rebar_dialyzer_format.erl index e40950f..0057b2d 100644 --- a/src/rebar_dialyzer_format.erl +++ b/src/rebar_dialyzer_format.erl @@ -4,11 +4,17 @@ -define(NR, "\033[0;31m"). -define(NG, "\033[0;32m"). +-define(NY, "\033[0;33m"). -define(NB, "\033[0;34m"). +-define(NM, "\033[0;35m"). +-define(NC, "\033[0;36m"). -define(NW, "\033[0;37m"). -define(BR, "\033[1;31m"). -define(BG, "\033[1;32m"). +-define(NY, "\033[1;33m"). -define(BB, "\033[1;34m"). +-define(BM, "\033[1;35m"). +-define(BC, "\033[1;36m"). -define(BW, "\033[1;37m"). -define(R, "\033[0m"). @@ -83,11 +89,26 @@ cfmt_([$~,$!,$g | S]) -> cfmt_([$~,$!,$G | S]) -> [?BG | cfmt(S)]; +cfmt_([$~,$!,$y | S]) -> + [?NY | cfmt(S)]; +cfmt_([$~,$!,$Y | S]) -> + [?BY | cfmt(S)]; + cfmt_([$~,$!,$b | S]) -> [?NB | cfmt(S)]; cfmt_([$~,$!,$B | S]) -> [?BB | cfmt(S)]; +cfmt_([$~,$!,$m | S]) -> + [?NM | cfmt(S)]; +cfmt_([$~,$!,$M | S]) -> + [?BM | cfmt(S)]; + +cfmt_([$~,$!,$c | S]) -> + [?NC | cfmt(S)]; +cfmt_([$~,$!,$C | S]) -> + [?BC | cfmt(S)]; + cfmt_([$~,$!,$w | S]) -> [?NW | cfmt(S)]; cfmt_([$~,$!,$W | S]) -> |