RCR 126: Enhanced Readline ?
Submitted by anonymous (Thu Nov 28 13:11:31 UTC 2002)
Abstract
This is a legacy RCR from Ruby Garden, submitted by anonymous. Matz has declared these RCRs obsolete, and asked that their authors resubmit them in the new format.
I would like the Readline module to include a way to access to rl_line_buffer from the inside of ruby.
Problem
(RCR imported from old format)
Proposal
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.
Analysis
(RCR imported from old format)
Implementation
(RCR imported from old format)
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, nothing more.
Plus, it's pretty straighforward to implement (see (ruby- talk:54796), although this patch breaks backward compatibility).
|
Strongly opposed |
0 |
Opposed |
0 |
Neutral |
0 |
In favor |
0 |
Strongly advocate |
0 |
|
RCRchive copyright © David Alan Black, 2003-2005.
Powered by .
More details (oct, 2002-12-18 16:12:40)
Plus, it's pretty straighforward to implement (see (ruby-talk:54796), although this patch breaks backward compatibility).