help-octave
[Top][All Lists]
Advanced

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

Re: Redirecting Octave IO


From: Jordi Gutiérrez Hermoso
Subject: Re: Redirecting Octave IO
Date: Fri, 4 Feb 2011 12:26:32 -0600

On 4 February 2011 10:20, Richard Crozier <address@hidden> wrote:
> Basically I'm writing a little gui for octave.

Goodness gracious, another one?

> Octave does not always seem to send the prompt to stdout, so I
> cannot tell if a computation has been completed.

Is this related to the pager? Perhaps you should disable all paging.
Look at the page_screen_output function. Perhaps that's what you need
to toggle. You said you did toggle it, hm, perhaps
page_output_immediately is also related, although it shouldn't be.

Regardless, the proper way to do this, which OctaveDE has implemented,
is to hook onto the readline idle hook. There are many other problems
besides the ones you're experiencing if you try to communicate with
pipes like that (or whatever the Windows equivalent to a pipe is), but
the readline method avoids all of these problems, in exchange for the
problem of being a bit harder to code.

HTH,
- Jordi G. H.


reply via email to

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