class TTY::Color::Mode

def mode

Other tags:
    Api: - public

Returns:
  • (Integer) -
def mode
  return 0 unless TTY::Color.tty?
  value = 8
  METHODS.each do |from_check|
    break if (value = public_send(from_check)) != NoValue
  end
  return 8 if value == NoValue
  value
end