Module: Vedeu::EscapeSequences::Actions

Extended by:
Actions
Included in:
Actions, Esc
Defined in:
lib/vedeu/esc/actions.rb

Overview

Provides action related escape sequences.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.bg_resetString



14
15
16
# File 'lib/vedeu/esc/actions.rb', line 14

def bg_reset
  "\e[49m"
end


19
20
21
# File 'lib/vedeu/esc/actions.rb', line 19

def blink
  "\e[5m"
end


24
25
26
# File 'lib/vedeu/esc/actions.rb', line 24

def blink_off
  "\e[25m"
end

.boldString



29
30
31
# File 'lib/vedeu/esc/actions.rb', line 29

def bold
  "\e[1m"
end

.bold_offString



34
35
36
# File 'lib/vedeu/esc/actions.rb', line 34

def bold_off
  "\e[22m"
end

.cursor_positionString



39
40
41
# File 'lib/vedeu/esc/actions.rb', line 39

def cursor_position
  "\e[6n"
end

.dimString



44
45
46
# File 'lib/vedeu/esc/actions.rb', line 44

def dim
  "\e[2m"
end

.fg_resetString



49
50
51
# File 'lib/vedeu/esc/actions.rb', line 49

def fg_reset
  "\e[39m"
end

.hide_cursorString



54
55
56
# File 'lib/vedeu/esc/actions.rb', line 54

def hide_cursor
  "\e[?25l"
end

.negativeString



59
60
61
# File 'lib/vedeu/esc/actions.rb', line 59

def negative
  "\e[7m"
end

.positiveString



64
65
66
# File 'lib/vedeu/esc/actions.rb', line 64

def positive
  "\e[27m"
end

.resetString



69
70
71
# File 'lib/vedeu/esc/actions.rb', line 69

def reset
  "\e[0m"
end

.show_cursorString



74
75
76
# File 'lib/vedeu/esc/actions.rb', line 74

def show_cursor
  "\e[?25h"
end

.underlineString



79
80
81
# File 'lib/vedeu/esc/actions.rb', line 79

def underline
  "\e[4m"
end

.underline_offString



84
85
86
# File 'lib/vedeu/esc/actions.rb', line 84

def underline_off
  "\e[24m"
end

Instance Method Details

#bg_resetString



14
15
16
# File 'lib/vedeu/esc/actions.rb', line 14

def bg_reset
  "\e[49m"
end


19
20
21
# File 'lib/vedeu/esc/actions.rb', line 19

def blink
  "\e[5m"
end


24
25
26
# File 'lib/vedeu/esc/actions.rb', line 24

def blink_off
  "\e[25m"
end

#boldString



29
30
31
# File 'lib/vedeu/esc/actions.rb', line 29

def bold
  "\e[1m"
end

#bold_offString



34
35
36
# File 'lib/vedeu/esc/actions.rb', line 34

def bold_off
  "\e[22m"
end

#cursor_positionString



39
40
41
# File 'lib/vedeu/esc/actions.rb', line 39

def cursor_position
  "\e[6n"
end

#dimString



44
45
46
# File 'lib/vedeu/esc/actions.rb', line 44

def dim
  "\e[2m"
end

#fg_resetString



49
50
51
# File 'lib/vedeu/esc/actions.rb', line 49

def fg_reset
  "\e[39m"
end

#hide_cursorString



54
55
56
# File 'lib/vedeu/esc/actions.rb', line 54

def hide_cursor
  "\e[?25l"
end

#negativeString



59
60
61
# File 'lib/vedeu/esc/actions.rb', line 59

def negative
  "\e[7m"
end

#positiveString



64
65
66
# File 'lib/vedeu/esc/actions.rb', line 64

def positive
  "\e[27m"
end

#resetString



69
70
71
# File 'lib/vedeu/esc/actions.rb', line 69

def reset
  "\e[0m"
end

#show_cursorString



74
75
76
# File 'lib/vedeu/esc/actions.rb', line 74

def show_cursor
  "\e[?25h"
end

#underlineString



79
80
81
# File 'lib/vedeu/esc/actions.rb', line 79

def underline
  "\e[4m"
end

#underline_offString



84
85
86
# File 'lib/vedeu/esc/actions.rb', line 84

def underline_off
  "\e[24m"
end