Euphoria
Ticket #926:
wait_key() sometimes returns -1
-
Reported by
jmduro
Sep 16, 2015
Frequently wait_key() does not wait for a key to be pressed and returns -1.
Details
1. Comment by ChrisB
Sep 21, 2015
Sometimes you have to flush the keyboard buffer first, so call get_key until it returns empty, then call wait_key(). The function keys typically return several characters, so if you want to interpret these, you have to capture several characters.