summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz N. Gies <heinz@licenser.net>2015-08-31 22:29:33 +0200
committerHeinz N. Gies <heinz@licenser.net>2015-08-31 22:30:40 +0200
commitf8a507191efd23b2dbe691497d3a9f1334c70020 (patch)
tree96e2cd978399e631cd4ee8f4b22ee6b916adfc8c
parent93549dcdd6ad64c0b870cd36f4d67da4f135841c (diff)
utf8 tree
-rw-r--r--src/rebar_prv_deps_tree.erl17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/rebar_prv_deps_tree.erl b/src/rebar_prv_deps_tree.erl
index d794bfa..301b6be 100644
--- a/src/rebar_prv_deps_tree.erl
+++ b/src/rebar_prv_deps_tree.erl
@@ -49,6 +49,7 @@ print_deps_tree(SrcDeps, Verbose, State) ->
ProjectAppNames = [{rebar_app_info:name(App)
,rebar_app_info:original_vsn(App)
,project} || App <- rebar_state:project_apps(State)],
+ io:setopts([{encoding, unicode}]),
case dict:find(root, D) of
{ok, Children} ->
print_children("", lists:keysort(1, Children++ProjectAppNames), D, Verbose);
@@ -60,14 +61,14 @@ print_children(_, [], _, _) ->
ok;
print_children(Prefix, [{Name, Vsn, Source} | Rest], Dict, Verbose) ->
Prefix1 = case Rest of
- [] ->
- io:format("~s`- ", [Prefix]),
- [Prefix, " "];
- _ ->
- io:format("~s|- ", [Prefix]),
- [Prefix, "| "]
- end,
- io:format("~s-~s (~s)~n", [Name, Vsn, type(Source, Verbose)]),
+ [] ->
+ io:format("~s└─ ", [Prefix]),
+ [Prefix, " "];
+ _ ->
+ io:format("~s├─ ", [Prefix]),
+ [Prefix, "│ "]
+ end,
+ io:format("~s─~s (~s)~n", [Name, Vsn, type(Source, Verbose)]),
case dict:find(Name, Dict) of
{ok, Children} ->
print_children(Prefix1, lists:keysort(1, Children), Dict, Verbose),