Skip to content

Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

IO#cursor_left

(::int) -> self
io.cursor_left(n) → io

Moves the cursor left n columns.

You must require ‘io/console’ to use this method.

See also #cursor_down #cursor_right #cursor= #cursor_up also in 4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0