End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Readline.point
Readline.point → int
ext/readline/readline.c
View on GitHub ↗
static VALUE
readline_s_get_point(VALUE self)
{
return INT2NUM(rl_point);
}
Returns the index of the current cursor position in Readline.line_buffer.
The index in Readline.line_buffer which matches the start of input-string passed to completion_proc is computed by subtracting the length of input-string from Readline.point.
Example
start = (the length of input-string) - Readline.point
Raises NotImplementedError if the using readline library does not support.