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

2006-12-23 Thread Ethan Blanton
Nathaniel J. Smith spake unto us the following wisdom: On Wed, Dec 20, 2006 at 01:13:01PM -0500, Ethan Blanton wrote: Thomas Keller spake unto us the following wisdom: Apparently informational messages (printed with the P() macro) and ticker output goes to clog instead of cout. If I want

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

2006-12-23 Thread Thomas Moschny
On Saturday 23 December 2006 19:47, Nathaniel J. Smith wrote: The only command I can think of that uses tickers and that you might want to pipe is 'annotate', ... and annotate doesn't have any ticker anymore, since the height stuff was merged in. In fact, the number of nodes to be visited is

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

2006-12-22 Thread Nathaniel J. Smith
On Fri, Dec 22, 2006 at 08:47:32AM +0100, Thomas Keller wrote: Nathaniel J. Smith schrieb: If you want to include the information into automate stdio's stdout stream, you need to multiplex it in somehow, and I don't have any particular opinion on what the best way would be to write such

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

2006-12-22 Thread Thomas Keller
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

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

2006-12-21 Thread Thomas Keller
Nathaniel J. Smith schrieb: If you want to include the information into automate stdio's stdout stream, you need to multiplex it in somehow, and I don't have any particular opinion on what the best way would be to write such code. I'm sort of surprised you even want it :-). The reason why it

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

2006-12-21 Thread Thomas Keller
And another reason why I'd like to fix the log output is because genkey now as well as the netsync commands in the future just throw out those messages over stderr, while a reading stdio process doesn't expect any output other than stdout and only real errors in stderr. This is because the log

[Monotone-devel] question regarding stdio and streams

2006-12-20 Thread Thomas Keller
Hi! Apparently informational messages (printed with the P() macro) and ticker output goes to clog instead of cout. If I want to move those output to the stdio output, which currently only processes cout, what would be the supposed way? a) extend mtn_sanity (f.e. by mtn_automate_sanity) to

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

2006-12-20 Thread Ethan Blanton
Thomas Keller spake unto us the following wisdom: Apparently informational messages (printed with the P() macro) and ticker output goes to clog instead of cout. If I want to move those output to the stdio output, which currently only processes cout, what would be the supposed way? It would