[BRLTTY] missing error checks?

Samuel Thibault samuel.thibault at ens-lyon.org
Sun Jun 3 09:32:04 EDT 2007


Mario Lang, le Sun 03 Jun 2007 15:01:54 +0200, a écrit :
> >>> c.write(text="Hello")
> 0
> >>> c.readKey(1)
> BrlAPI exception: Invalid packet on Write request of size 13 (04 00 00 00 00 00
> 00 05 48 65 6c 6c 6f)
> You may wish to add the -ldebug option to the brltty command line in order to ge
> t additional information in the system log
> Aborted
> 
> This should not really happen.  I guess the error comes from
> too few parameters to write().

No, it comes from the fact that write() requires the text to be of the
same size as the braille display, as mentioned in the brltty logs. If
you want brlapi to extend / shrink the text, use writeText() instead.

Samuel


More information about the BRLTTY mailing list