Module: Libconsole::Color

Included in:
Lang::JS, Lang::JS
Defined in:
lib/libconsole/color.rb

Constant Summary collapse

Escape =
{
  uni:  "\u001b",
  oct:  "\033",
  hex:  "\x1B",
  lang: "\e"
}
Format =
{
  reset:     [0, "E"],  bold:    [1, "B"],
  dim:       [2, "D"],  italic:  [3, "I"],
  underline: [4, "U"],  blink:   [5, "N"],
  fastblink: [6, "F"],  reverse: [7, "V"],
  hide:      [8, "H"],  strike:  [9, "S"]
}
Color =
{
  black:     [0, "K"],  red:     [1, "R"],
  green:     [2, "G"],  yellow:  [3, "Y"],
  blue:      [4, "L"],  magenta: [5, "M"],
  cyan:      [6, "C"],  white:   [7, "W"]
}
Range =
{
  ""        => 30,
  "bg"      => 40,
  "light"   => 90,
  "bglight" => 100
}

Instance Method Summary collapse

Instance Method Details

#_no_empty(argv) ⇒ Object



41
42
43
# File 'lib/libconsole/color.rb', line 41

def _no_empty(argv)
  argv.any? ? argv : nil
end