Loading lib/jsduck/logger.rb +4 −1 Original line number Diff line number Diff line Loading @@ -143,8 +143,11 @@ module JsDuck CLEAR = "\e[0m" # Helper for doing colored output in UNIX terminal # # Only does color output when STDERR is attached to TTY # i.e. is not piped/redirected. def paint(color_name, msg) if OS.windows? if OS.windows? || !$stderr.tty? msg else COLORS[color_name] + msg + CLEAR Loading Loading
lib/jsduck/logger.rb +4 −1 Original line number Diff line number Diff line Loading @@ -143,8 +143,11 @@ module JsDuck CLEAR = "\e[0m" # Helper for doing colored output in UNIX terminal # # Only does color output when STDERR is attached to TTY # i.e. is not piped/redirected. def paint(color_name, msg) if OS.windows? if OS.windows? || !$stderr.tty? msg else COLORS[color_name] + msg + CLEAR Loading