lib/tty/color/support.rb
# Shell out to tput to check color support
#
# @api private
Shell out to tput to check color support
Shell out to tput to check color support
def from_tput
        return NoValue if !TTY::Color.command?("tput colors")
        cmd = %q(tput colors 2>/dev/null)
        `#{cmd}`.to_i > 2
      rescue Errno::ENOENT
        NoValue
      end
def from_tput return NoValue if ! TTY :: Color . command? ( "tput colors" ) cmd = %q(tput colors 2>/dev/null) ` #{ cmd } ` . to_i > 2 rescue Errno :: ENOENT NoValue end
Shell out to tput to check color support
Shell out to tput to check color support
api
None