[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:
<https://savannah.gnu.org/bugs/?55943>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, (continued)
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Michael Godfrey, 2019/03/18
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Michael Godfrey, 2019/03/18
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Rik, 2019/03/18
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Michael Godfrey, 2019/03/18
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Mike Miller, 2019/03/18
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Philip Nienhuis, 2019/03/18
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Daniel Pérez, 2019/03/26
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Alan, 2019/03/27
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Rik, 2019/03/27
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Daniel Pérez, 2019/03/27
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument,
Rik <=
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Michael Godfrey, 2019/03/27
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Mike Miller, 2019/03/27
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Mike Miller, 2019/03/27
- [Octave-bug-tracker] [bug #55943] The pause function fails when there is no argument, Rik, 2019/03/27
- [Octave-bug-tracker] [bug #55943] pause() with no arguments returns immediately on Windows, Mike Miller, 2019/03/27
- [Octave-bug-tracker] [bug #55943] pause() with no arguments returns immediately on Windows, Michael Godfrey, 2019/03/27
- [Octave-bug-tracker] [bug #55943] pause() with no arguments returns immediately on Windows, Mike Miller, 2019/03/29
- [Octave-bug-tracker] [bug #55943] pause() with no arguments returns immediately on Windows, Mike Miller, 2019/03/29