Merge pull request #913 from 0x2b3bfa0/patch-1

Fix #912: ukbhit() false positive
This commit is contained in:
pwpiwi 2020-02-13 08:37:17 +01:00 committed by GitHub
commit bedae7768c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,7 @@ int ukbhit(void)
error += tcsetattr(STDIN_FILENO, TCSANOW, &Otty); // reset attributes
}
return ( error == 0 ? cnt : -1 );
return cnt;
}
char getch(void)