Class: TTYString::CSICode::J
- Inherits:
-
TTYString::CSICode
- Object
- TTYString::Code
- TTYString::CSICode
- TTYString::CSICode::J
- Defined in:
- lib/tty_string/csi_code_definitions.rb
Overview
leftovers:allow
Instance Method Summary collapse
-
#action(mode = '0') ⇒ Object
rubocop:disable Metrics/MethodLength.
Methods inherited from TTYString::CSICode
Methods inherited from TTYString::Code
char, descendants, inherited, #initialize, render
Constructor Details
This class inherits a constructor from TTYString::Code
Instance Method Details
#action(mode = '0') ⇒ Object
rubocop:disable Metrics/MethodLength
109 110 111 112 113 114 115 116 |
# File 'lib/tty_string/csi_code_definitions.rb', line 109 def action(mode = '0') # rubocop:disable Metrics/MethodLength case mode when '0' then screen.clear_forward when '1' then screen.clear_backward when '2', '3' then screen.clear else parser.unknown end end |