Mercurial > hg > octave-lyh
changeset 6423:a90b54016b12
[project @ 2007-03-21 13:15:03 by jwe]
author | jwe |
---|---|
date | Wed, 21 Mar 2007 13:15:03 +0000 |
parents | 9b982dd07654 |
children | 05a48d6cf163 |
files | src/ChangeLog src/sysdep.cc |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-03-21 John W. Eaton <jwe@octave.org> + + * sysdep.cc (Fpause): Also call drawnow if nargin == 0. + (Fkbhit, Fsleep, Fusleep): Also call drawnow here. + 2007-03-20 David Bateman <dbateman@free.fr> * DLD-FUNCTIONS/cellfun.cc (Fcellfun): Correct for shape of return
--- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -601,6 +601,8 @@ if (interactive || forced_interactive) { + feval ("drawnow"); + int c = octave_kbhit (args.length () == 0); if (c == -1) @@ -667,6 +669,7 @@ } else { + feval ("drawnow"); flush_octave_stdout (); octave_kbhit (); } @@ -691,7 +694,10 @@ if (xisnan (dval)) warning ("sleep: NaN is an invalid delay"); else - octave_sleep (dval); + { + feval ("drawnow"); + octave_sleep (dval); + } } } else @@ -721,6 +727,8 @@ warning ("usleep: NaN is an invalid delay"); else { + feval ("drawnow"); + int delay = NINT (dval); if (delay > 0)