Method: TTY::Reader::Line#right
- Defined in:
- lib/tty/reader/line.rb
#right(n = 1) ⇒ Object
Move line position to the right by n chars
113 114 115 |
# File 'lib/tty/reader/line.rb', line 113 def right(n = 1) @cursor = [@text.length, @cursor + n].min end |