Method: IO.forward
- Defined in:
- lib/term/cursor.rb
.forward(num = 1) ⇒ Term
moves the cursor forward by num columns.
92 93 94 95 |
# File 'lib/term/cursor.rb', line 92 def self.forward(num = 1) print "\e[#{num}C" # CUF self end |
moves the cursor forward by num columns.
92 93 94 95 |
# File 'lib/term/cursor.rb', line 92 def self.forward(num = 1) print "\e[#{num}C" # CUF self end |