ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] Q: Windownumbers start with 1, not 0


From: J.R. Mauro
Subject: Re: [RP] Q: Windownumbers start with 1, not 0
Date: Mon, 8 Sep 2008 11:05:49 -0400



On Mon, Sep 8, 2008 at 11:02 AM, Denis Lagno <address@hidden> wrote:
* Denis Lagno <address@hidden> [Mon, 08 Sep 2008 19:01:18 +0400]:

* "J.R. Mauro" < address@hidden> [Mon, 8 Sep 2008 10:26:46 -0400]:
> No. The window numbering is based on array indexing, which starts at
0
> because programmers
> are cool like that.

screen utility (ratpoison resembles screen, right?) uses numeration
from
1.

oops, just checked, no, screen also numbers from zero.

There's also a better reason for this than "programmers are awesome"
Once you go to two-digit window numbers, you need to pull 2 keypresses
from the event queue, then interpret them into a number. Try making 11
windows in screen, then doing a C-A 10. It switches you to window #1. I
imagine RP does the same. If you don't start from 0, you only have 9 windows
that are selectible with 1 key, as opposed to 10 if you number from 0.


reply via email to

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