[BRLTTY] Clearing display contents with BrlAPI
Aura Kelloniemi
kaura.dev at sange.fi
Tue Dec 8 03:06:37 EST 2020
Hi,
I noticed, that if I use the Python method brlapi.Connection.writeText and
pass it an empty string, it is a no-op. I would have expected this to clear
the entire contents of the attached display. I don't know if the C method
works similarly. I think that writeText('') in normal operation replaces the
whole contents of the display, instead of appending to it, so passing an empty
string should replace the existing text with nothing.
What do you developers think, what would be the correct method of clearing the
display contents? The current behaviour leads to a situation where I need to
define a wrapper method which handles the special case of an empty text
argument separately, which is not a huge problem, just a bit inelegant.
--
Aura
More information about the BRLTTY
mailing list