[quoted lines by Samuel Thibault on 2014/10/26 at 01:05 +0200]
>Making currentVirtualTerminal_BaseScreen() return -1 fixes it. I tried adding
>to the noScreen driver a currentVirtualTerminal method returning -1, but it
>didn't work.
Please try the attached patch (scr-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: [email protected] | Canada K2A 1H7 | http://FamilyRadio.com/
diff --git a/Programs/scr_driver.c b/Programs/scr_driver.c
index 889becd..767977c 100644
--- a/Programs/scr_driver.c
+++ b/Programs/scr_driver.c
@@ -52,13 +52,18 @@ processParameters_NoScreen (char **parameters) {
return 1;
}
+static int
+currentVirtualTerminal_NoScreen (void) {
+ return -1;
+}
+
static void
describe_NoScreen (ScreenDescription *description) {
description->rows = 1;
description->cols = strlen(screenMessage);
description->posx = 0;
description->posy = 0;
- description->number = 1;
+ description->number = currentVirtualTerminal_NoScreen();
}
static int
@@ -82,6 +87,7 @@ scr_initialize (MainScreen *main) {
main->base.poll = poll_NoScreen;
main->base.describe = describe_NoScreen;
main->base.readCharacters = readCharacters_NoScreen;
+ main->base.currentVirtualTerminal = currentVirtualTerminal_NoScreen;
main->processParameters = processParameters_NoScreen;
}
_______________________________________________
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://mielke.cc/mailman/listinfo/brltty