Module: AnsiColor

Extended by:
StdOut
Defined in:
lib/ansi_color.rb,
lib/ansi_color/string.rb,
lib/ansi_color/effects.rb,
lib/ansi_color/helpers.rb,
lib/ansi_color/rainbow.rb,
lib/ansi_color/std_out.rb

Defined Under Namespace

Modules: StdOut, String Classes: Effects, Helpers, InvalidColorCode, InvalidColorName, InvalidEffect, Rainbow

Constant Summary collapse

E =
"\033["
RESET =
"#{E}0m"
EFFECTS =
{
  :normal     => 0,
  :bold       => 1,
  :underscore => 4,
  :blink      => 5,
  :inverse    => 7
}
FOREGROUND_COLORS =
{
  :black   => 30,
  :red     => 31,
  :green   => 32,
  :yellow  => 33,
  :blue    => 34,
  :magenta => 35,
  :cyan    => 36,
  :white   => 37
}
BACKGROUND_COLORS =
{
  :black   => 40,
  :red     => 41,
  :green   => 42,
  :yellow  => 43,
  :blue    => 44,
  :magenta => 45,
  :cyan    => 46,
  :white   => 47
}

Method Summary

Methods included from StdOut

print, puts