Module: Term::ANSIMove

Defined in:
lib/lijab/term/ansi.rb

Class Method Summary collapse

Class Method Details

.back(cols) ⇒ Object


9
# File 'lib/lijab/term/ansi.rb', line 9

def back(cols) "\033[#{cols}D" end

.down(lines) ⇒ Object


7
# File 'lib/lijab/term/ansi.rb', line 7

def down(lines) "\033[#{lines}B" end

.fwd(cols) ⇒ Object


8
# File 'lib/lijab/term/ansi.rb', line 8

def fwd(cols) "\033[#{cols}C" end

.to(line, col) ⇒ Object


5
# File 'lib/lijab/term/ansi.rb', line 5

def to(line, col) "\033[#{line};#{col}H" end

.up(lines) ⇒ Object


6
# File 'lib/lijab/term/ansi.rb', line 6

def up(lines) "\033[#{lines}A" end