[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
kbhit/pause on Windows?
From: |
Rik |
Subject: |
kbhit/pause on Windows? |
Date: |
Wed, 2 Dec 2015 11:36:19 -0800 |
12/2/15
Does kbhit() work correctly for any Windows users? At least in my Windows
XP virtual machine the following code is broken.
x = kbhit
Instead of waiting for a single keypress and returning it, the terminal
seems to be line oriented. You can type as many characters as you want,
but the last one has to be a <Return> in order for the function to
complete. This also affects pause() since the two functions rely
internally on octave_kbhit() in sysdeps.cc.
I have a patch that works for me after cross-building with MXE, but I want
to confirm that others are having this problem.
--Rik
- kbhit/pause on Windows?,
Rik <=