Class: TTYString::CSICode::H

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

Overview

leftovers:allow

Direct Known Subclasses

LowF

Instance Method Summary collapse

Methods inherited from TTYString::CSICode

default_arg

Methods inherited from TTYString::Code

char, descendants, inherited, #initialize, render

Constructor Details

This class inherits a constructor from TTYString::Code

Instance Method Details

#action(row = 1, col = 1) ⇒ Object



53
54
55
56
57
# File 'lib/tty_string/csi_code_definitions.rb', line 53

def action(row = 1, col = 1)
  # cursor is zero indexed, arg is 1 indexed
  cursor.row = row.to_i - 1
  cursor.col = col.to_i - 1
end