Module Sickill::Rainbow
In: lib/ansi_color.rb
lib/rainbow.rb
lib/ansi_rgb.rb

Methods

background   blink   bright   color   colour   foreground   hide   inverse   italic   reset   underline  

Classes and Modules

Class Sickill::Rainbow::AnsiColor
Class Sickill::Rainbow::AnsiRgb
Class Sickill::Rainbow::RGB

Constants

TERM_COLORS = { :black => 0, :red => 1, :green => 2, :yellow => 3, :blue => 4, :magenta => 5, :cyan => 6, :white => 7, :default => 9, }
TERM_EFFECTS = { :reset => 0, :bright => 1, :italic => 3, :underline => 4, :blink => 5, :inverse => 7, :hide => 8, }

Attributes

enabled  [RW] 

Public Instance methods

Turns on blinking attribute for this text (not well supported by terminal emulators).

Turns on bright/bold for this text.

color(*color)

Alias for foreground

colour(*color)

Alias for foreground

Hides this text (set its color to the same as background).

Inverses current foreground/background colors.

Turns on italic style for this text (not well supported by terminal emulators).

Resets terminal to default colors/backgrounds.

It shouldn‘t be needed to use this method because all methods append terminal reset code to end of string.

Turns on underline decoration for this text.

[Validate]