From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Is comint the way to go? Date: Fri, 23 Feb 2007 20:40:18 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172263235 13340 80.91.229.12 (23 Feb 2007 20:40:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 20:40:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 23 21:40:28 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKhDN-0001gW-UB for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Feb 2007 21:40:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKhDN-00009o-LQ for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Feb 2007 15:40:25 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 35 Original-X-Trace: individual.net ew9wzj727DsBzgDgwb+QCgkHN74CN66e9VQhVj1GgfEeqRlj70 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (windows-nt) Cancel-Lock: sha1:w+oST4a30IN3Dc41fZUh8ytSEo4= Original-Xref: shelby.stanford.edu gnu.emacs.help:145832 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41438 Archived-At: I want to write a command line interface to a program that isn't command line driven. In fact, it is not even a program, it is a database with a specific schema. What I want to do is create a package that let's the user navigate this database using familiar command line commands like `cd' and `ls'. When the user does `cd', what happens in the background is that one or more SQL-queries are sent to Oracle's Sql*Plus tool, and I massage the response into something that fits nice on the command line. It would look something like this: myapp> cd Implementation myapp> ls packagefoo packagebar ... myapp> cd packagefoo myapp> ls file1 file2 None of the above is "real". Each command executed by the user actually executes a specific query, depending on the context (basically depending on where the user has previously "moved" using `cd'), and the output will look like the output from working with a file system. My question is, is comint the right thing to use here? Or, must comint derived packages always be built around a command line app? Am I better off doing this more or less from scratch (I have working code to make my queries, so that's not the issue, the issue is the user interface)?