Euphoria Ticket #926: wait_key() sometimes returns -1

Frequently wait_key() does not wait for a key to be pressed and returns -1.

Details

Type: Bug Report Severity: Normal Category: Interpreter
Assigned To: unknown Status: New Reported Release: 4.1.0 linux x64 (6112:ca9cd0a7
Fixed in SVN #: View VCS: none Milestone:

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.

Search



Quick Links

User menu

Not signed in.

Misc Menu