Hi Samuel, Thanks. The example is not very clear. All I want to do is to writhe to a display. When I run my code, I get the following error. Can't determine tty number
How do I fix this? Pranav -----Original Message----- From: BRLTTY <[email protected]> On Behalf Of Samuel Thibault Sent: Sunday, March 30, 2025 6:09 PM To: Informal discussion between users and developers of BRLTTY. <[email protected]> Subject: Re: [BRLTTY] Unable to see displayed text Pranav Lal, le dim. 30 mars 2025 17:58:53 +0530, a ecrit: > However, I do not see the text being written to the display. > > import brlapi > > import errno > > import Xlib.keysymdef.miscellany > import time > try: > b = brlapi.Connection() > > print("Server version " + > str(b.getParameter(brlapi.PARAM_SERVER_VERSION, 0, > brlapi.PARAMF_GLOBAL))) > > print("Display size " + > str(b.getParameter(brlapi.PARAM_DISPLAY_SIZE, 0, > brlapi.PARAMF_GLOBAL))) > > b.writeText("hello") As shown in the pydoc3 brlapi example, you need to call b.enterTtyMode() first. Samuel _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://brltty.app/mailman/listinfo/brltty _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://brltty.app/mailman/listinfo/brltty
