bugGNU Screen - Bugs: bug #27713, Please add a string escape for...

 
 

bug #27713: Please add a string escape for "escape key was pressed".

Submitted by:  Friedrich Delgado Friedrichs <taupan>
Submitted on:  Thu Oct 15 20:52:16 2009  
 
Category: Feature RequestSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: None
Fixed Release: 4.1.0Planned Release: None
Work Required: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed Mar 14 18:05:37 2012, comment #4:

Hi! Thanks a lot for the patch. It is now in the tree: http://git.savannah.gnu.org/gitweb/?p=screen.git;a=commit;h=db59704c1297c056cec0cc9305ae92e44a15bf33

Sadrul Habib Chowdhury <sadrul>
Project Administrator
Wed Feb 24 22:01:09 2010, comment #3:

I finally got around to test this.

Using this on all my hosts makes me happy:

hardstatus alwayslastline "%{= wd}%?%-Lw%?%?%E%{= RK}%:%{=br WB}%?%n*%f %t%{=r dw}%?(%u)%?%{= wd}%?%+Lw%?%{=r dw}"

Thanks you! :)

Friedrich Delgado Friedrichs <taupan>
Wed Jan 27 08:45:24 2010, comment #2:

I am using StringEscapeForEscapeKey.diff for a few days and it is really useful. Especially in nested screen sessions. It probably should get upstream.

Artur Skonecki <askonecki>
Fri Jan 22 03:50:38 2010, comment #1:

I independently thought of this same idea today. Indeed, I even picked the same %E string escape sequence!

I have attached a patch that will do precisely this. I tested it successfully using nested sessions when I typed the escape character. I'm not sure what other ways the escape sequence can be generated, but I believe this patch will work there too. (I searched for all occurrences of D_ESCseen.)

I followed the same format as the patch for %P added in December.

This is my first attempt at a patch using git, so I'm not quite sure how to describe what I patched against. I believe I created it against the master branch as of this evening when I pulled it down.

(file #19528)

Ben Love <blove>
Thu Oct 15 20:52:16 2009, original submission:

I frequently use nested screens and I don't want to remap escape in the inside screens for several reasons. So it would be convenient if I could 'mark' the escape status of my screens.

I could think of a string escape like this:

%E sets %? to true if the escape sequence was just pressed and screen is waiting for the next key

If all nested screens use the same hardstatus, the workflow could be like this:

^A first screen is marked as waiting for next key, e.g. the hardstatus line is inverted
a first screen is unmarked, nested screen gets marked
d nested screen unmarked and detached

I have no idea if this is at all possible with the current codebase, so feel free to ignore this request until it is ;)

Kind regards
Friedel

Friedrich Delgado Friedrichs <taupan>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #19528:  StringEscapeForEscapeKey.diff added by blove (3kB - text/x-diff - Add %E escape string that sets %? to true if the escape sequence has been seen.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sadrul (Posted a comment)
  • -unavailable- added by askonecki (Posted a comment)
  • -unavailable- added by blove (Updated the item)
  • -unavailable- added by taupan (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Mar 14 18:05:37 2012sadrulStatusNone=>Fixed
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.1.0
    Fri Jan 22 03:50:38 2010bloveAttached File-=>Added StringEscapeForEscapeKey.diff, #19528

    Back to the top


    Powered by Savane 3.1-cleanup1