On Thu, 23 Oct 2008, Claude Marinier wrote:
On Thu, 23 Oct 2008, Marc Feeley wrote:
On 23-Oct-08, at 1:17 PM, Claude Marinier wrote:
By the way, I plan to build a command line interface for the catalogue and later use Tcl/Tk for the GUI and Expect to manage the application. Do you know of open source Scheme code for command line processing?
No. But what exactly do you need as a command line interface? I think tcl/tk already provides basic editing commands for input fields. If you look at the code for my Javascript Scheme system (JSS) on the dumping grounds, you will see how to do basic line editing within a web page (which might be an interesting alternative to tcl/tk).
Marc,
The program reads book records, builds an index (will build more later), and can search the index (using red-black trees). It is now time to build an interface so I can search the index and display books. I want to use a command line; I think they are quicker and more versatile. Perhaps I am revealing my age. :-) Later, I will add code to add books.
I would like the command line interface to be able to prompt for commands and data, read responses with some simple editing, and display results.
I do not need something as complex as 'libcli' but would like something better than dumb prompt and read.
I could just use 'rlwrap' which would save me a lot of work.
http://debaday.debian.net/index.php?s=rlwrap
On the other hand, I would not have the experience of working on the code.