help-octave
[Top][All Lists]
Advanced

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

Re: function printing progress to terminal while running


From: Ben Abbott
Subject: Re: function printing progress to terminal while running
Date: Sat, 22 Mar 2008 12:27:55 -0400


On Mar 22, 2008, at 11:25 AM, Malte Köster wrote:
Hi there,
I have a function that takes quite a while to execute, so I would
like it to give some progress indication.
I tried to use printf to print the actual status to the terminal.
However this does not work, since all the printing is done only after
the whole function is executed.
Is there a way to print something to the terminal _while_ the
function is executed?

cheers,
malte

Sounds like your process indicator is being help up by the pager.

Try "more off" before running your function. It that fixes the problem

If so, experiment with the commands below. It should be possible to get the effect you're looking for.

        page_output_immediately

        fflush

        drawnow

Ben




reply via email to

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