[BRLTTY] Unable to see displayed text

Pranav Lal pranav at techesoterica.com
Sun Mar 30 12:28:53 UTC 2025


Hi all,

Here is the code I have in python. I want to output text to my braille
display. 

The good news is that I can connect to the server and get the version number
of the server and the size of the braille display.

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")
	time.sleep(20)
	b.closeConnection()
except Exception as e:
	print("error")
	print(e)

Pranav



More information about the BRLTTY mailing list