Module: Term::ANSI

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

Class Method Summary collapse

Class Method Details

.clearObject


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

def clear() "\033[2J" end

.clearlineObject


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

def clearline() "\r#{cleartoeol}" end

.cleartoeolObject


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

def cleartoeol() "\033[K" end

.restoreposObject


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

def restorepos() "\033[u" end

.saveposObject


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

def savepos() "\033[s" end

.title(s) ⇒ Object


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

def title(s) "\033]2;#{s}\007" end