From: Matt Wilkins Date: 2005-10-28T06:35:30+09:00 Subject: Re: Ruby readline - completion based on already-entered commands > Do you mean argument-specific completion? yip > As far as I know, most readline-based programs tend to parse > user input manually. gnu readline provides a lot things, so throwing that away and using my own cooked up scheme isn't the way i want to go. > How can it be achived by other language? well one way is to use gnu readline, so long as whatever binding hasn't hidden the necessary info (in this case the line buffer). for instance in the perl binding, the completion function is passed $text, $line, $start. the patch in my previous posting (not my patch) passes the current token, and the whole line up to that point. matt