monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] question regarding stdio and streams


From: Thomas Keller
Subject: Re: [Monotone-devel] question regarding stdio and streams
Date: Sat, 23 Dec 2006 01:34:12 +0100
User-agent: Thunderbird 1.5.0.9 (Macintosh/20061207)

Nathaniel J. Smith schrieb:
I'm afraid this is rather hypothetical for me to have anything useful
to say.  If you just want to be able to take arbitrary text from
monotone and dump it at the user, I suppose capturing stderr is not
too hard either...

Yes, of course, but then I think stderr in stdio should be reserved to errors coming from automate stdio itself, not from commands run within stdio... like "your appartment exploded, can't run stdio" sort of errors... =)

> but probably you do want more than that, i.e.,
structured status information, which would require quite a different
solution... but this is all for the use of commands that don't even
exist, so who knows what they will actually need... dunno.

I quickly implemented push/pull/sync for automate in some branch, and automate genkey already spits out messages on clog when creating a new key, so this problem exists already. One possible solution for me would be that the P() macro would print out either to clog or cout (in stdio format) dependent if a command is called from within stdio or not. But I guess this is too complicable or not even doable without even more interfering magic (see how I tried to implement tickers in stdio...)

Thomas.

--
ICQ: 85945241 | SIP: 1-747-027-0392 | http://www.thomaskeller.biz
> Guitone, a frontend for monotone: http://guitone.berlios.de
> Music lyrics and more: http://musicmademe.com




reply via email to

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