Ruby Readline Documentation

Before today the Ruby readline library lacked documentation! In order to find some decent documentation you would have to read the README packaged with the source. Michael Fellinger (manveru) from #ruby-lang offered to help me get some decent documentation online. Take a look!

readline

3 Responses

1

Bryan on July 22, 2009 at 5:25 pm  #

Thanks for the documentation. Learned lots of stuff about Readline history, completion, etc that I didn’t know! :)

Any idea if Readline is capable of doing pagination for text output that overruns the terminal via something like ‘less’?

2

Joseph Pecoraro on July 22, 2009 at 7:17 pm  #

@Bryan: I don’t really think readline would do that. You could look at something like ncurses. I don’t have much experience with stuff like that though.

3

Bryan on July 23, 2009 at 1:27 pm  #

Hey Joseph,

Thanks for the response. I have another question regarding command completion… is it possible to do completion for both a static list AND directory contents? If so, is it possible to change the completion append character depending on what completion was done? For example, if the completion done was from a static list, I’d want the append character to be a space. However, if it was a directory contents completion, I wouldn’t want a space to be appended.

Thanks again for the great existing documentation! :)

Add a Comment

search