Module: Vedeu::EscapeSequences::Actions

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

Overview

Provides action related escape sequences.

Instance Method Summary collapse

Instance Method Details

#bg_resetString

Returns:

  • (String)


16
17
18
# File 'lib/vedeu/esc/actions.rb', line 16

def bg_reset
  "\e[49m"
end

Returns:

  • (String)


21
22
23
# File 'lib/vedeu/esc/actions.rb', line 21

def blink
  "\e[5m"
end

Returns:

  • (String)


26
27
28
# File 'lib/vedeu/esc/actions.rb', line 26

def blink_off
  "\e[25m"
end

#boldString

Returns:

  • (String)


31
32
33
# File 'lib/vedeu/esc/actions.rb', line 31

def bold
  "\e[1m"
end

#bold_offString

Returns:

  • (String)


36
37
38
# File 'lib/vedeu/esc/actions.rb', line 36

def bold_off
  "\e[22m"
end

#cursor_positionString

Returns:

  • (String)


41
42
43
# File 'lib/vedeu/esc/actions.rb', line 41

def cursor_position
  "\e[6n"
end

#dimString

Returns:

  • (String)


46
47
48
# File 'lib/vedeu/esc/actions.rb', line 46

def dim
  "\e[2m"
end

#fg_resetString

Returns:

  • (String)


51
52
53
# File 'lib/vedeu/esc/actions.rb', line 51

def fg_reset
  "\e[39m"
end

#hide_cursorString

Returns:

  • (String)


56
57
58
# File 'lib/vedeu/esc/actions.rb', line 56

def hide_cursor
  "\e[?25l"
end

#negativeString

Returns:

  • (String)


61
62
63
# File 'lib/vedeu/esc/actions.rb', line 61

def negative
  "\e[7m"
end

#positiveString

Returns:

  • (String)


66
67
68
# File 'lib/vedeu/esc/actions.rb', line 66

def positive
  "\e[27m"
end

#resetString

Returns:

  • (String)


71
72
73
# File 'lib/vedeu/esc/actions.rb', line 71

def reset
  "\e[0m"
end

#show_cursorString

Returns:

  • (String)


76
77
78
# File 'lib/vedeu/esc/actions.rb', line 76

def show_cursor
  "\e[?25h"
end

#underlineString

Returns:

  • (String)


81
82
83
# File 'lib/vedeu/esc/actions.rb', line 81

def underline
  "\e[4m"
end

#underline_offString

Returns:

  • (String)


86
87
88
# File 'lib/vedeu/esc/actions.rb', line 86

def underline_off
  "\e[24m"
end