module Vt100::Cursor
Public Instance Methods
cursor_backward(n)
click to toggle source
# File lib/vt100/cursor.rb, line 17 def cursor_backward(n) print "\x1B[#{n}D" end
cursor_down(n)
click to toggle source
# File lib/vt100/cursor.rb, line 9 def cursor_down(n) print "\x1B[#{n}B" end
cursor_forward(n)
click to toggle source
# File lib/vt100/cursor.rb, line 13 def cursor_forward(n) print "\x1B[#{n}C" end
cursor_hide()
click to toggle source
# File lib/vt100/cursor.rb, line 25 def cursor_hide print "\x1B[?25l" end
cursor_home()
click to toggle source
# File lib/vt100/cursor.rb, line 21 def cursor_home print "\x1B[H" end
cursor_show()
click to toggle source
# File lib/vt100/cursor.rb, line 29 def cursor_show print "\x1B[?25h" end
cursor_up(n)
click to toggle source
# File lib/vt100/cursor.rb, line 5 def cursor_up(n) print "\x1B[#{n}A" end