Re: Readline completion example?
Jean Louis <[email protected]>
| Newsgroups | gmane.lisp.clisp.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Sam, Thank you, I got the idea. On Wed, Feb 22, 2017 at 01:39:53PM -0500, Sam Steingold wrote: > You can start your quest by replacing sys::completion with, say, > > (defun sys::completion (string start end) > (list "foo" "foo1" "foo2")) > > Now, whenever you hit TAB, you get "foo" inserted and "foo1" and "foo2" > suggested (or something like that). > > The current behavior is described here: > http://clisp.org/impnotes/clisp.html#completion That is nice, I got it! Thanks. That sys::completion could be used to provide list of completions. How do I prevent the CLISP complainining on redefining the function? And which function I can use to get the string from the user? Something similar like (read-line)? Is maybe (readline:readline-reader ? Jean ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ clisp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/clisp-list