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: Tatsuro MATSUOKA
Subject: Re: function printing progress to terminal while running
Date: Sun, 23 Mar 2008 19:54:46 +0900 (JST)

Hi

octave:16> help stderr 
-- Built-in Function: stderr () 
Return the numeric value corresponding to the standard error 
stream. Even if paging is turned on, the standard error is not 
sent to the pager. It is useful for error messages and prompts.

So try

fprintf(stderr(), "Iteration:%d",K)

Regards

Tatsuro


--- Ben Abbott <address@hidden> wrote:

> 
> 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
> 
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 


--------------------------------------
Easy + Joy + Powerful = Yahoo! Bookmarks x Toolbar
http://pr.mail.yahoo.co.jp/toolbar/


reply via email to

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