From: "Sandor Szücs" Date: 2008-07-19T02:21:30+09:00 Subject: Re: Readline and conditional tab results based on input Hi, On 17.07.2008, at 18:44, Marc Heiler wrote: > is there a way to "find out" what a user already typed in readline? I think you have to implement a CompletionProc. simple example: irb> CompletionProc = proc {|input| input} => # irb> Readline.completion_proc = CompletionProc => # irb> Readline.completion_proc.call("req") => "req" irb> req # tab clicked req # return value A real world example exists on irb/completion.rb hth. regards, Sandor Szücs --