[BRLTTY] Using brlapi : First operation requiring to be WRITE when using Freedom Scientific Focus 14
Siju Samuel
sijusamueltech at gmail.com
Tue Jan 14 17:48:30 EST 2014
Hi,
It looks like after opening connection and entering tty mode, need to
perform at least *one write* *first* to do subsequent read/write
operations. Is this expected. I used Focus14 in *Windows* with BRLTTY
4.5dev rev 5477 [http://mielke.cc/brltty/] code from svn. But when I do
the same with a 'Virtual Keyboad' it is not an issue.
Code Structure :
// With out the following write it will not read anything and there is
// no log entry even specific to read key even of the keys are pressed.
// brlapi_writeText(0, " DUMMY START");
while(1) {
if (brlapi_readKey(0, &key) > 0) { //Not waiting
//Just print.
}
Sleep(300);
}
Can you please suggest if it is a defect and the resolution.
Thanks,
Siju Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mielke.cc/pipermail/brltty/attachments/20140114/4f47ce12/attachment.html>
More information about the BRLTTY
mailing list