Module: Vedeu::EscapeSequences::Actions
Overview
Provides action related escape sequences.
Instance Method Summary collapse
- #bg_reset ⇒ String
- #blink ⇒ String
- #blink_off ⇒ String
- #bold ⇒ String
- #bold_off ⇒ String
- #cursor_position ⇒ String
- #dim ⇒ String
- #fg_reset ⇒ String
- #hide_cursor ⇒ String
- #negative ⇒ String
- #positive ⇒ String
- #reset ⇒ String
- #show_cursor ⇒ String
- #underline ⇒ String
- #underline_off ⇒ String
Instance Method Details
#bg_reset ⇒ String
14 15 16 |
# File 'lib/vedeu/esc/actions.rb', line 14 def bg_reset "\e[49m" end |
#blink ⇒ String
19 20 21 |
# File 'lib/vedeu/esc/actions.rb', line 19 def blink "\e[5m" end |
#blink_off ⇒ String
24 25 26 |
# File 'lib/vedeu/esc/actions.rb', line 24 def blink_off "\e[25m" end |
#bold ⇒ String
29 30 31 |
# File 'lib/vedeu/esc/actions.rb', line 29 def bold "\e[1m" end |
#bold_off ⇒ String
34 35 36 |
# File 'lib/vedeu/esc/actions.rb', line 34 def bold_off "\e[22m" end |
#cursor_position ⇒ String
39 40 41 |
# File 'lib/vedeu/esc/actions.rb', line 39 def cursor_position "\e[6n" end |
#dim ⇒ String
44 45 46 |
# File 'lib/vedeu/esc/actions.rb', line 44 def dim "\e[2m" end |
#fg_reset ⇒ String
49 50 51 |
# File 'lib/vedeu/esc/actions.rb', line 49 def fg_reset "\e[39m" end |
#hide_cursor ⇒ String
54 55 56 |
# File 'lib/vedeu/esc/actions.rb', line 54 def hide_cursor "\e[?25l" end |
#negative ⇒ String
59 60 61 |
# File 'lib/vedeu/esc/actions.rb', line 59 def negative "\e[7m" end |
#positive ⇒ String
64 65 66 |
# File 'lib/vedeu/esc/actions.rb', line 64 def positive "\e[27m" end |
#reset ⇒ String
69 70 71 |
# File 'lib/vedeu/esc/actions.rb', line 69 def reset "\e[0m" end |
#show_cursor ⇒ String
74 75 76 |
# File 'lib/vedeu/esc/actions.rb', line 74 def show_cursor "\e[?25h" end |
#underline ⇒ String
79 80 81 |
# File 'lib/vedeu/esc/actions.rb', line 79 def underline "\e[4m" end |
#underline_off ⇒ String
84 85 86 |
# File 'lib/vedeu/esc/actions.rb', line 84 def underline_off "\e[24m" end |