File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,7 @@ if [ "$OSTYPE" = "cygwin" ]; then SCRIPT_PATH=$(cygpath -m $SCRIPT_PATH); fi
85
85
if [ " $MODE " != " iex" ]; then ERL=" -noshell -s elixir start_cli $ERL " ; fi
86
86
87
87
# Check for terminal support
88
- test -t 1
89
- if [ $? = 0 ]; then ERL=" -elixir ansi_enabled true $ERL " ; fi
88
+ if test -t 1 -a -t 2; then ERL=" -elixir ansi_enabled true $ERL " ; fi
90
89
91
90
if [ -z " $ERL_PATH " ]; then
92
91
if [ -f " $SCRIPT_PATH /../releases/RELEASES" ] && [ -f " $SCRIPT_PATH /erl" ]; then
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ defmodule IO.ANSI do
34
34
This function simply reads the configuration value for
35
35
`:ansi_enabled` in the `:elixir` application. The value is by
36
36
default false unless Elixir can detect during startup that
37
- `stdout` is a terminal .
37
+ both `stdout` and `stderr` are terminals .
38
38
"""
39
39
@ spec enabled? :: boolean
40
40
def enabled? do
You can’t perform that action at this time.
0 commit comments