aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_util.erl
diff options
context:
space:
mode:
authorHeinz N. Gies <[email protected]>2016-02-09 13:51:37 -0500
committerHeinz N. Gies <[email protected]>2016-02-09 13:51:37 -0500
commit72e4baf906dcf6840880597d365da59e9e6635e0 (patch)
tree9f5ff288aaf097d6891ce5619102d60ac39b1339 /src/rlx_util.erl
parentef1921571bc5e4c3aec4d3b3f36b62efba01c3fd (diff)
downloadrelx-72e4baf906dcf6840880597d365da59e9e6635e0.tar.gz
relx-72e4baf906dcf6840880597d365da59e9e6635e0.tar.bz2
relx-72e4baf906dcf6840880597d365da59e9e6635e0.zip
Add low / high color mode
Diffstat (limited to 'src/rlx_util.erl')
-rw-r--r--src/rlx_util.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rlx_util.erl b/src/rlx_util.erl
index 9b86ad3..c1f7b38 100644
--- a/src/rlx_util.erl
+++ b/src/rlx_util.erl
@@ -38,8 +38,10 @@
load_file/3,
template_files/0,
escript_foldl/3,
+ intensity/0,
symlink_or_copy/2]).
+-define(DFLT_INTENSITY, high).
-define(ONE_LEVEL_INDENT, " ").
%%============================================================================
%% types
@@ -297,6 +299,15 @@ cp_r_win32(Source,Dest) ->
end, filelib:wildcard(Source)),
ok.
+intensity() ->
+ case os:getenv("RELX_COLOR") of
+ "high" ->
+ high;
+ "low" ->
+ low;
+ _ ->
+ ?DFLT_INTENSITY
+ end.
%%%===================================================================
%%% Test Functions
%%%===================================================================