input: make stdin non-blocking for terminal input
commit40234b1a3c21cd0ef1087bd5b5e9601dd56c4fce
authorUoti Urpala <uau@mplayer2.org>
Thu, 28 Apr 2011 09:52:00 +0000 (28 12:52 +0300)
committerUoti Urpala <uau@mplayer2.org>
Thu, 28 Apr 2011 09:52:00 +0000 (28 12:52 +0300)
tree22cdc7fb6ddd5222753366eab8dadad8ed768005
parent3b401fb07f04dd1947402550db6702619bbcb5ce
input: make stdin non-blocking for terminal input

getch2.c did not make stdin non-blocking, and relied on only being
called after select() had shown readability. Stop relying on that
assumption and set stdin to non-blocking mode. Hopefully no relevant
platform has problems with this...
osdep/getch2.c