help-octave
[Top][All Lists]
Advanced

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

non blocking kbhit()


From: Joao Cardoso
Subject: non blocking kbhit()
Date: Mon, 03 Apr 2000 16:56:58 +0100

Hi,

Could it be possible to have a non-blocking kbhit() in such a way that
if no character is available it returns imediatly?

This could be usefull on iterative scripts where one does not know in
advance when to stop the iteration. Then one could do:

   while (mse > min_mse & !kbhit)
      iterate
   endwhile

to iterate in an unatended mode, and stop it when pressing a key.

To retain compatibility, `kbhit' without arguments should work in the
normal blocking mode.

Joao



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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