Class: TTYString::CSICode::E

Inherits:
TTYString::CSICode show all
Defined in:
lib/tty_string/csi_code_definitions.rb

Overview

leftovers:allow

Instance Method Summary collapse

Methods inherited from TTYString::CSICode

default_arg, #integer

Methods inherited from TTYString::Code

char, descendants, inherited, #initialize, render

Constructor Details

This class inherits a constructor from TTYString::Code

Instance Method Details

#action(rows = '1') ⇒ Object



44
45
46
47
48
49
50
# File 'lib/tty_string/csi_code_definitions.rb', line 44

def action(rows = '1')
  rows = integer(rows)
  return unless rows

  cursor.down(rows)
  cursor.col = 0
end