[BRLTTY] BRLTTY and AT-SPI
Dave Mielke
dave at mielke.cc
Mon Nov 16 10:33:31 EST 2015
[quoted lines by Aura Kelloniemi on 2015/11/16 at 14:09 +0200]
>OK. BRLTTY's BrlAPI driver should then ask to not show the cursor in menus,
>messages, info mode, etc. Now if I invoke the Describe Character command I
>still see the cursor in the character description message at the position
>where it was visible before invoking the command (if the cursor was visible at
>that time on the display). Messages hardly have a cursor, it just disturbs
>reading.
Could you please test the attached patch (cursor-1.patch)?
--
Dave Mielke | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario | http://Mielke.cc/bible/
EMail: Dave at Mielke.cc | Canada K2A 1H7 | http://FamilyRadio.org/
-------------- next part --------------
diff --git a/Programs/message.c b/Programs/message.c
index 420ff95..bfc46f5 100644
--- a/Programs/message.c
+++ b/Programs/message.c
@@ -138,6 +138,7 @@ ASYNC_TASK_CALLBACK(presentMessage) {
buffer[count - 1] = WC_C('>');
}
+ brl.cursor = -1;
if (!writeBrailleCharacters(mgp->mode, buffer, count)) {
mgp->presented = 0;
break;
diff --git a/Programs/update.c b/Programs/update.c
index 2fb89ec..5725f59 100644
--- a/Programs/update.c
+++ b/Programs/update.c
@@ -211,6 +211,7 @@ showInfo (void) {
const size_t size = brl.textColumns * brl.textRows;
char text[size + 1];
+ brl.cursor = -1;
if (!setStatusText(&brl, mode)) return 0;
/* Here we must be careful. Some displays (e.g. Braille Lite 18)
More information about the BRLTTY
mailing list