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

 
 

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

Submitted by:  None
Submitted on:  Mon 18 Oct 2010 07:35:46 PM UTC  
Votes:  20  
 
Category: Feature RequestSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
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
  • -unavailable- added by chrisscm (Voted in favor of this item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 20 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 03 Nov 2010 02:10:52 PM UTCchrisscmCarbon-Copy-=>Added chrisscm
    Mon 18 Oct 2010 07:35:46 PM UTCNoneAttached File-=>Added startat.patch, #21708

    Back to the top


    Powered by Savane 3.1-cleanup1