screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [screen-devel] Idea/work around


From: Dmitry Klimov
Subject: Re: [screen-devel] Idea/work around
Date: Mon, 18 Oct 2010 15:44:39 +0400

# Window numbering starts at 1, not 0.
bind c screen 1
bind 0 select 10

On Fri, Oct 15, 2010 at 5:20 AM, Andy Zweb <address@hidden> wrote:
> 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

[Prev in Thread] Current Thread [Next in Thread]