Comment on this RCR (edit wiki page) | RCRchive home

RCR 126: Enhanced Readline ?

submitted by anonymous on 2002-11-28 08:31:31


This is a legacy RCR. If this is your RCR, please resubmit it using the new format and process.


I would like the Readline module to include a way to access to rl_line_buffer from the inside of ruby.
I would like the Readline module to include a way to access to rl_line_buffer from the inside of ruby.

The goal of this change is to make the Readline module context sensitive when it does its completion.

Currently ing in readline send only the partial word typed (if I type ls x my Readline proc receives 'x' but not the 'ls x' string).

I propose that the rl_line_buffer is tranlated into a module variable so that I can, whenever I want get the whole line content.


Vote for this RCR

Strongly opposed [0]
Opposed [0]
Neutral [0]
In favor [2]
Strongly advocate [6]

Change the status of this RCR to:

accepted

rejected

withdrawn


Add comments here

More details (oct, 2002-12-18 16:12:40)

Just to comment a bit deeper (i am the original author of this RCR :]). The change I propose to implement will allow ruby to get the same capabilities in term of "Readliness" than any C program using the libreadline out there, <em>nothing more</em>.

Plus, it's pretty straighforward to implement (see http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/54796 (ruby-talk:54796), although this patch breaks backward compatibility).

Back to RCRchive.


RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog