[Top][All Lists]

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

[Octave-bug-tracker] [bug #55943] The pause function fails when there is

From: Rik
Subject: [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument
Date: Wed, 27 Mar 2019 18:33:42 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #10, bug #55943 (project octave):

For your usage, simply waiting for a user to press a key to continue, they are
equivalent.  Try 'help kbhit' to see the documentation.

 -- kbhit ()
 -- kbhit (1)
     Read a single keystroke from the keyboard.

     If called with an argument, don't wait for a keypress.

     For example,

          x = kbhit ();

     will set X to the next character typed at the keyboard as soon as
     it is typed.

          x = kbhit (1);

     is identical to the above example, but doesn't wait for a keypress,
     returning the empty string if no key is available.

     See also: input, pause.

The kbhit function also doesn't echo the character to string (whatever it was)
the way that pause does.


Reply to this item at:


  Message sent via Savannah

reply via email to

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