lib/tty/color/support.rb
# Inspect environment $TERM variable for color support
#
# @api private
Inspect environment $TERM variable for color support
Inspect environment $TERM variable for color support
def from_term
        case @env['TERM']
        when 'dumb' then false
        when /^screen|^xterm|^vt100|color|ansi|cygwin|linux/i then true
        else NoValue
        end
      end
def from_term case @env [ 'TERM' ] when 'dumb' then false when / ^screen|^xterm|^vt100|color|ansi|cygwin|linux /i then true else NoValue end end
Inspect environment $TERM variable for color support
Inspect environment $TERM variable for color support
api
None