summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-08-31 21:52:49 -0500
committerTristan Sloughter <t@crashfast.com>2015-08-31 21:52:49 -0500
commita1d45c364c0c02d5e64bb90a613afd285dc502e7 (patch)
tree8f9594ad320c233a48adb199a1e2c1bea45199e1 /src
parentc5825978a0d6e1ad6e870b61f032490bc427aa21 (diff)
use ~ts for unicode output and reset encoding to latin1
Diffstat (limited to 'src')
-rw-r--r--src/rebar_prv_deps_tree.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rebar_prv_deps_tree.erl b/src/rebar_prv_deps_tree.erl
index 301b6be..5986521 100644
--- a/src/rebar_prv_deps_tree.erl
+++ b/src/rebar_prv_deps_tree.erl
@@ -55,20 +55,21 @@ print_deps_tree(SrcDeps, Verbose, State) ->
print_children("", lists:keysort(1, Children++ProjectAppNames), D, Verbose);
error ->
print_children("", lists:keysort(1, ProjectAppNames), D, Verbose)
- end.
+ end,
+ io:setopts([{encoding, latin1}]).
print_children(_, [], _, _) ->
ok;
print_children(Prefix, [{Name, Vsn, Source} | Rest], Dict, Verbose) ->
Prefix1 = case Rest of
[] ->
- io:format("~s└─ ", [Prefix]),
+ io:format("~ts└─ ", [Prefix]),
[Prefix, " "];
_ ->
- io:format("~s├─ ", [Prefix]),
+ io:format("~ts├─ ", [Prefix]),
[Prefix, "│ "]
end,
- io:format("~s─~s (~s)~n", [Name, Vsn, type(Source, Verbose)]),
+ io:format("~ts─~ts (~ts)~n", [Name, Vsn, type(Source, Verbose)]),
case dict:find(Name, Dict) of
{ok, Children} ->
print_children(Prefix1, lists:keysort(1, Children), Dict, Verbose),