bugGNU Screen - Bugs: bug #31368, [patch] 'startat' command to...

 
 

bug #31368: [patch] 'startat' command to change the first window number

Submitter:  None
Submitted:  Mon 18 Oct 2010 07:35:46 PM UTC
Votes: 20
 
Category:  Feature Request Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 18 Oct 2010 07:35:46 PM UTC, original submission:  

I have attached a patch that creates a command called 'startat'.  The command allows users to change the default starting window number from 0 to 1 (or anything else).  Please consider applying it.

The patch is quite trivial -- only 4 new lines of C code (the rest is documentation).

Motivation:

On my keyboard, the '0' key is to the right of the '9' key, not to the left of the '1' key.  Thus, I prefer to have my window numbering start at 1, not 0.

I've added the following lines to my .screenrc to simulate starting at 1:

bind c screen 1  # new windows start at 1
bind 0 select 10 # C-a 0 selects window 10, not window 0
bind ` select 0  # C-a ` selects window 0
screen 1         # create window 1 on startup to inhibit window 0

Unfortunately, the above is unsatisfactory for a few reasons:
  * 'screen emacs -nw' puts emacs on window 0, not window 1
  * 'screen emacs -nw' creates two windows:  window 0 has emacs, window 1 has a shell.  I only want one window (emacs).
  * if /etc/screenrc contains 'screen 1' (perhaps the sysadmin or distribution maintainer also wants windows to start at 1), then two windows are created (1 and 2).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #21708:  startat.patch added by None (6KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by chrisscm (Voted in favor of this item)
  •  

    There are 20 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-11-03 chrisscm Carbon-Copy- Added chrisscm
    2010-10-18 None Attached File- Added startat.patch, #21708

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code