[BRLTTY] BRLTTY and MinGW

Samuel Thibault samuel.thibault at ens-lyon.org
Tue Oct 12 07:45:25 EDT 2010


marquats at studi.informatik.uni-stuttgart.de, le Tue 12 Oct 2010 13:26:39 +0200, a écrit :
> Now, braille output does work, but braille input still doesn't. When I
> press braille keys, brlapi_readKey (1, &key) does not return.
> 
> I have attached the debug.log file

Dave, could you apply the attached patch to get more debugging
information?

Samuel
-------------- next part --------------
Index: brlapi_server.c
===================================================================
--- brlapi_server.c	(révision 5403)
+++ brlapi_server.c	(copie de travail)
@@ -2348,6 +2348,7 @@
   }
   if (command != EOF) {
     clientCode = cmdBrlttyToBrlapi(command, retainDots);
+    logMessage(LOG_DEBUG, "API got command %08x, thus client code %016"BRLAPI_PRIxKEYCODE, command, clientCode);
     /* nobody needs the raw code */
     if ((c = whoGetsKey(&ttys,clientCode,BRL_COMMANDS))) {
       int passKey;
@@ -2355,6 +2356,7 @@
       handleAutorepeat(&command, &c->repeatState);
       /* Update brlapi equivalent */
       clientCode = cmdBrlttyToBrlapi(command, retainDots);
+      logMessage(LOG_DEBUG, "API got command %08x from repeat engine, thus client code %016"BRLAPI_PRIxKEYCODE, command, clientCode);
       /* Check whether the client really wants the result of repetition */
       pthread_mutex_lock(&c->acceptedKeysMutex);
       passKey = inKeyrangeList(c->acceptedKeys,clientCode) != NULL;


More information about the BRLTTY mailing list