About print data on screen

Michael Goffioul michael.goffioul at gmail.com
Thu Mar 13 03:41:36 CDT 2008


Screen output is buffered by default. To disable it, use "more off".

Michael.

On Thu, Mar 13, 2008 at 8:44 AM, José Luis García Pallero
<jgpallero at gmail.com> wrote:
> Hi,
> I have a doubt about how GNU/Octave print some data on screen. For example,
> if I execute the bellow script:
>
> for i=1:5
>     a = 4
>     sleep(1);
> end
>
> It must be print on scree the number 4, sleep one second, print 4 one more
> time, sleep one second again, ... fivr times. But in my computer (centrino
> laptop, Debian Sid and GNU/Octave compiled manually -no Debian binary-)
> GNU/Octave sleeps during 5 seconds (for i=1:5) and after it prints on screen
> a=4 five times. But if instead a=4 sentence I write warning('Hello') the
> script runs correctly: print Hello, sleep one second, print Hello, etc. How
> is the reason of this strange behaviour.
>
> Thanks.
>
> --
> *****************************************
> José Luis García Pallero
> jgpallero at gmail.com
> (o<
> / / \
> V_/_
> Use Debian GNU/Linux and enjoy!
>  *****************************************
> _______________________________________________
>  Help-octave mailing list
>  Help-octave at octave.org
>  https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>



More information about the Help-octave mailing list