From: Mathias Dahl <brakjoller@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Is comint the way to go?
Date: Fri, 23 Feb 2007 20:40:18 +0100 [thread overview]
Message-ID: <uodnku0gt.fsf@gmail.com> (raw)
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)?
next reply other threads:[~2007-02-23 19:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-23 19:40 Mathias Dahl [this message]
2007-02-23 21:28 ` Is comint the way to go? David Hansen
[not found] ` <mailman.35.1172266718.7795.help-gnu-emacs@gnu.org>
2007-02-26 12:46 ` Mathias Dahl
2007-03-09 16:56 ` anoop aryal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uodnku0gt.fsf@gmail.com \
--to=brakjoller@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).