-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
keycontrol: avoid mixing stdio and POSIX read API
getchar() must not be used to read a character when there are more than one at once because otherwise won't next select() return and the key will remain in the stdio buffer. Fixed: `` (sleep 2; printf '\x18M'; sleep 50 ) | ./build/bin/uv -s testcard -r alsa --param disable-keyboard-control=no ``` when the 'M' key was not processed immediately but just at the end of the process.
- Loading branch information
1 parent
123b2fa
commit 70a8c1e
Showing
1 changed file
with
30 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters