APIdock / Ruby
/
Browse About
method

point

v2_4_6 - Show latest stable - Class: Readline
point()
public

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.

start = (the length of input-string) - Readline.point

Raises NotImplementedError if the using readline library does not support.

static VALUE
readline_s_get_point(VALUE self)
{
    return INT2NUM(rl_point);
}

Related methods

  • Class methods
  • basic_quote_characters
  • basic_quote_characters=
  • basic_word_break_characters
  • basic_word_break_characters=
  • completer_quote_characters
  • completer_quote_characters=
  • completer_word_break_characters
  • completer_word_break_characters=
  • completion_append_character
  • completion_append_character=
  • completion_case_fold
  • completion_case_fold=
  • completion_proc
  • completion_proc=
  • delete_text
  • emacs_editing_mode
  • emacs_editing_mode?
  • filename_quote_characters
  • filename_quote_characters=
  • get_screen_size
  • input=
  • insert_text
  • line_buffer
  • output=
  • point
  • point=
  • pre_input_hook
  • pre_input_hook=
  • quoting_detection_proc
  • quoting_detection_proc=
  • readline
  • redisplay
  • refresh_line
  • set_screen_size
  • special_prefixes
  • special_prefixes=
  • vi_editing_mode
  • vi_editing_mode?
APIdock API Documentation Browser

Swarmia is the best SPACE framework implementation for modern software teams.

© 2026 APIdock