[BRLTTY] brlapi programming examples
Samuel Thibault
samuel.thibault at ens-lyon.org
Tue Aug 25 14:15:45 EDT 2020
Hello,
Mika Hanhijärvi, le mar. 25 août 2020 20:54:31 +0300, a ecrit:
> #!/usr/bin/python3
> import brlapi
>
> try:
> b = brlapi.Connection()
> b.enterTtyMode()
> If I understand it correctly that should work
Yes, that's alright.
> but when I run that I get this error:
>
> Traceback (most recent call last):
> File "./test5.py", line 6, in <module>
> b.enterTtyMode()
> File "brlapi.pyx", line 446, in brlapi.Connection.enterTtyMode
> brlapi.OperationError: <exception str() failed>
That's odd, I tried it in a VM, without problem.
Unfortunately it seems the exception printing got broken.
You can however check the brltty logs, you can raise its verbosity to
debug and add the server category in /etc/brltty.conf's log-level line.
Samuel
More information about the BRLTTY
mailing list