Re: [BRLTTY] brlapi programming examples

2020-08-25 Thread Samuel Thibault
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

Re: [BRLTTY] brlapi programming examples

2020-08-25 Thread Mika Hanhijärvi
Hello Thanks. I did read the "pydoc3 brlapi" documentation and I tried this simple test: #!/usr/bin/python3 import brlapi try:   b = brlapi.Connection()   b.enterTtyMode() except brlapi.ConnectionError as e:   if e.brlerrno == brlapi.ERROR_CONNREFUSED:     print("Connection to %s refused.

Re: [BRLTTY] brlapi programming examples

2020-08-25 Thread Mario Lang
Mika Hanhijärvi writes: > I just would like to create my own braille tetris :-) I have written a braille tetris recently. However, it does not use BrlAPI, it uses Unicode Braille characters to display the state of the game directly on the console. You can find it here: