I was trying to find a setting or command that would let me make screen
start numbering at the index 1 instead of 0 but was unable to find one that
could be done via a screenrc, a switch or ./configure option. My reason for
doing so is so that the numbering of the windows matches the numbering of
the qwerty keyboard.

I found a way to do so in the source code by just changing the StartAt
variable for nwin_default to 1.

Would it be possible for this to be something settable in screenrc?

if a feature like that were added it would be important to retain the old
(0,1,2...9) style in the absence of any configuration directive.

here is a diff of the one line I changed:

diff --git a/src/window.c b/src/window.c
index 1716796..8727580 100644
--- a/src/window.c
+++ b/src/window.c
@@ -142,7 +142,7 @@ struct NewWindow nwin_undef   =

 struct NewWindow nwin_default =
 {
-  0,           /* StartAt */
+  1,           /* StartAt */
   0,           /* aka */
   ShellArgs,   /* args */
   0,           /* dir */

Reply via email to