lib/cliutils/pretty_io.rb in cliutils-1.2.5 vs lib/cliutils/pretty_io.rb in cliutils-1.2.6
- old
+ new
@@ -33,10 +33,10 @@
end
# Displays a chart of all the possible ANSI foreground
# and background color combinations.
# @return [void]
- def self.color_chart
+ def color_chart
[0, 1, 4, 5, 7].each do |attr|
puts '----------------------------------------------------------------'
puts "ESC[#{attr};Foreground;Background"
30.upto(37) do |fg|
40.upto(47) do |bg|