[BRLTTY] changing screen windows

Dave Mielke Dave at mielke.cc
Mon Jul 30 20:29:54 EDT 2018


[quoted lines by Cheryl Homiak <cahomiak at gmail.com> on 2018/07/30 at 16:40 -0500]

>>I cannot open a new window, which requires control-a and then the letter c

Do you have any thoughts on how to present this functionality via a key
binding?

>and if I want to go to the first window I have to just do it by going back
>because the first screen window is zero and thus the press of the first router
>key takes me to window 1. 

The attached patch (screen-switch-2.patch) should resolve this one. It's an
addition to - not a replacement for - the previous patch.

-- 
I believe the Bible to be the very Word of God: http://Mielke.cc/bible/
Dave Mielke            | 2213 Fox Crescent | WebHome: http://Mielke.cc/
EMail: Dave at Mielke.cc  | Ottawa, Ontario   | Twitter: @Dave_Mielke
Phone: +1 613 726 0014 | Canada  K2A 1H7   |
-------------- next part --------------
diff --git a/Drivers/Screen/Screen/screen.c b/Drivers/Screen/Screen/screen.c
index d1bbf2f20..14cb5a952 100644
--- a/Drivers/Screen/Screen/screen.c
+++ b/Drivers/Screen/Screen/screen.c
@@ -286,7 +286,7 @@ insertKey_ScreenScreen (ScreenKey key) {
 static int
 switchVirtualTerminal_ScreenScreen (int vt) {
   char number[0X10];
-  snprintf(number, sizeof(number), "%d", vt);
+  snprintf(number, sizeof(number), "%d", vt+1);
   return doScreenCommand("select", number, NULL);
 }
 


More information about the BRLTTY mailing list