monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] GUI communication.


From: Zbigniew Zagórski
Subject: [Monotone-devel] GUI communication.
Date: Sat, 05 Jun 2004 15:11:17 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040526 Debian/1.6-6

Hi.
Anybody working on GUI ?

In fact i'd like to start writing some GUI to monotone. And i'm thinking
how to start and how to do this. Now i'm about to write this in
wxWindows, and communicate with monotone via stdin/stdout.

Of course it would be nice to link monotone into GUI application, but it
 easier to maintain one application and use monotone as "external tool".
This is true with assuption, that monotone text ui will be quite stable.

Other way of communication (which appeared when i've read commands.cc)
which i have on mind is to make monotone read commends from stdin and
process it in without exiting. Session would look like this.

gui: execute monotone --db=somedb listen-commands
                      redirecting stdin/stdout/stderr
gui: list
gui: branches
gui: .                  <- simple dot as in smtp as end of input
monotone: ok
monotone: somebranch
monotone: somebranch22
monotone: .             <- end of monotone output
gui: list kehs
monotone: err unknown command or something
gui: heads
monotone: ok
monotone: e270b1a4307def6fde6051fec052084ba3bdb9c7 address@hidden ...
monotone: <...>
monotone: .
gui: bye

and so on.

Thanks.
--
Zbigniew Zagórski ::::::::::::::::::::::::::
:: zzbigg (at) o2 (dot) pl ::: GG:5280474 ::
:::: axlhome.host.sk :::::::::::::::::::::::




reply via email to

[Prev in Thread] Current Thread [Next in Thread]