Module: Remedy::ANSI::Command

Extended by:
Remedy::ANSI
Defined in:
lib/remedy/ansi.rb

Class Method Summary collapse

Methods included from Remedy::ANSI

color, command, cursor, e, esc, push, pushe, pushesc, screen

Class Method Details

.clear_down!Object



66
67
68
# File 'lib/remedy/ansi.rb', line 66

def clear_down!
  pushesc code[:clear_down]
end

.clear_line!Object



58
59
60
# File 'lib/remedy/ansi.rb', line 58

def clear_line!
  pushesc code[:clear_line]
end

.clear_screen!Object



70
71
72
# File 'lib/remedy/ansi.rb', line 70

def clear_screen!
  pushesc code[:clear_screen]
end

.clear_up!Object



62
63
64
# File 'lib/remedy/ansi.rb', line 62

def clear_up!
  pushesc code[:clear_up]
end

.codeObject



48
49
50
51
52
53
54
55
56
# File 'lib/remedy/ansi.rb', line 48

def code
  {
    clear_line: 'K',

    clear_down:   'J',
    clear_up:     '1J',
    clear_screen: '2J'
  }
end