Author's DescriptionThe text-query package generalizes the capabilities of the Lisp functions Y-OR-N-P and YES-OR-NO-P, and is similar in many ways to the Symbolics FQUERY function. There are several major differences, one of which is text-query's ability to timeout with a default value. In addition to redefining Y-OR-N-P and YES-OR-NO-P in terms of QUERY, this package defines Y-OR-N-P-WAIT and YES-OR-NO-P-WAIT to illustrate the timeout capability. More complicated queries are possible using the QUERY function.
Packager's NotesThis is old code, from 1993, but it is good ANSI Common Lisp. It compiles and runs well under SBCL and should work in any modern Lisp implementation.
Please see the source code for documentation, since it contains plenty of comments, docstrings, and examples.
-Peter Scott, October 2004