[BRLTTY] how to use readKey on Windows

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Nov 26 18:15:19 EST 2008


James Teh, le Thu 27 Nov 2008 08:58:22 +1000, a écrit :
> On 27/11/2008 4:30 AM, Thijs Koerselman wrote:
> > My plan was to spawn a
> > new thread from my main app. This thread then calls readKey() in an
> > infinite loop (as long as some flag is valid). The keys returned by
> > brlapi are buffered, and my main app is reading this buffer at fixed
> > intervals.
> This won't work. If you call readKey in another thread like this (at 
> least on Windows), any other calls to BRLAPI (e.g. to write text to the 
> display) will block.

Ah?  That's a windows implementation bug then, we had fixed that in the
Unix version.

Samuel


More information about the BRLTTY mailing list