From maintainers-request at octave dot org Tue Feb 21 06:33:10 2006 Subject: Re: How to break out of a computation? From: John Swensen To: Sebastien Loisel CC: octave maintainers mailing list Date: Tue, 21 Feb 2006 05:31:31 -0700 Sebastien Loisel wrote: > On 2/21/06, *Sebastien Loisel* > wrote: > > If the code in pager.cc is close to what you want, but > doesn't quite > do everything you need, then we can probably fix things so > that it > > as we've been discussing, this isn't possible in MinGW. The > C++ way is to add a virtual write() function to > octave_pager_stream, whose default logic is something like > > > Upon further consideration of pager.cc, I think what you're > getting at is the diary functionality, and I notice now that any > embedder will necessarely break that as it is right now. > > > Upon further further consideration, here's an idea. Instead of << to > cout in pager.cc, << to octave_actual_stdout, which you initially > rdbuf() to cout. This way I can rdbuf() octave_actual_stdout to my > buffer, and it'll go through octave_pager_stream. > > Cheers, > > Sébastien Loisel > This is the very "streams hell" I went through a couple of years ago when I tried it your way. Looks like you have much more streams experience and fortitude than I did :) John Swensen