octave-maintainers
[Top][All Lists]
Advanced

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

Re: How to break out of a computation?


From: David Bateman
Subject: Re: How to break out of a computation?
Date: Wed, 22 Feb 2006 10:08:47 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

John W. Eaton wrote:

On 20-Feb-2006, Sebastien Loisel wrote:

| >
| > The code in pager.cc already handles buffering of Octave output.  Are
| > you not using any of that?
|
|
| I just look that up to see whether I am. I'm afraid I'm not. I'm rdbuf()ing | octave_stdout to my own subclass of streambuf, which dumps everything to the | window as soon as it receives it. I guess it would be niftier if I could | grab octave_pager_buf's output and stuff, but the functions aren't virtual
| so I don't see how I can simply reuse the object.
|
| Do you suggest a different approach?

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
will work for you.  You may have to suggest changes.  But I think that
would be better than duplicating much of that code on your own.

Seb,

This was what I was trying to get at when I suggested you use the command_editor class for the input, as then you'd have the diary, the history (even across sessions) that you don't currently have...

D.

--
David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob) 91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax) The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary



reply via email to

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