Module: Interact::Pretty

Included in:
Progress
Defined in:
lib/interact/pretty.rb

Constant Summary collapse

WINDOWS =
!!(RbConfig::CONFIG['host_os'] =~ /mingw|mswin32|cygwin/)
COLOR_CODES =
{
  :black => 0,
  :red => 1,
  :green => 2,
  :yellow => 3,
  :blue => 4,
  :magenta => 5,
  :cyan => 6,
  :white => 7
}
DEFAULT_COLORS =
{
  :name => :blue,
  :neutral => :blue,
  :good => :green,
  :bad => :red,
  :error => :magenta,
  :unknown => :cyan,
  :warning => :yellow,
  :instance => :yellow,
  :number => :green,
  :prompt => :blue,
  :yes => :green,
  :no => :red
}