Christopher Browne <[EMAIL PROTECTED]> writes:
> I don't see one in scwm; a quick browse through the docs doesn't show
> off an "eval" anywhere.
I think it's actually called scwmrepl (there's also a one-shot
scwmexec, I think). I don't have scwm installed ATM, so I'm not sure.
I'm running sawmill these days. It's the first WM I've used that I
have almost no complaints about, and it has *really* good gnome
integration (actually insinuates itself into the gnome control panel
directly).
> <Ulink URL= "http://www.sfu.ca/~agraf/ggl.html">
> describes something rather like what would be nice to have.
Hmm. I was thinking more along the lines of a command line tool that
would pop up a repl that was directly connected to the one in the
currently running invocation of gnucash (we could also have a --pid
argument if you needed to specify a particular one). You could also
(presuming we do something like what I describe below) do some fairly
clever things like this:
$ gnc-repl --run-script foo.scm > some-saved-data
We'd have to be careful to detect if there's a controlling terminal
and not put up a prompt if so, etc.
This approach would have the advantage of giving you a nice readline
interface with command history for free. You'd still have the problem
that stdout would point to the window you launched gnucash from,
though. There might be a way to redirect (or duplicate) stdout/err to
the command line invocation, but I'd have to think about it. It would
probably be easier to just go through all the code and change all the
printfs, displays, etc to use explicit ports. Then we can redirect
the port by just changing the pointer.
How about that?
--
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]