Class: Ansi

Inherits:
Object
  • Object
show all
Defined in:
lib/motion_model/ext.rb

Constant Summary collapse

ESCAPE =
"\033"

Class Method Summary collapse

Class Method Details

.color(color_constant) ⇒ Object



260
261
262
# File 'lib/motion_model/ext.rb', line 260

def self.color(color_constant)
  "#{ESCAPE}[#{color_constant}m"
end

.green_colorObject



272
273
274
# File 'lib/motion_model/ext.rb', line 272

def self.green_color
  color 32
end

.red_colorObject



276
277
278
# File 'lib/motion_model/ext.rb', line 276

def self.red_color
  color 31
end

.reset_colorObject



264
265
266
# File 'lib/motion_model/ext.rb', line 264

def self.reset_color
  color 0
end

.yellow_colorObject



268
269
270
# File 'lib/motion_model/ext.rb', line 268

def self.yellow_color
  color 33
end