bugGNU Screen - Bugs: bug #48594, Reattaching a screen causes it to...

 
 

bug #48594: Reattaching a screen causes it to forget the "defflow" setting

Submitted by:  David Fifield <spangle>
Submitted on:  Fri 22 Jul 2016 01:56:11 AM UTC  
 
Category: Program LogicSeverity: 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.

 

Fri 22 Jul 2016 01:56:11 AM UTC, original submission:

screen forgets the previous setting of "defflow" after reattaching, for example with "screen -x" or the lockscreen command.

This affects me because I use C-q as the escape character. Because C-q is the XON flow control character, I also have to turn off flow control or else the escape character doesn't work. I have this in .screenrc:

Whenever I reattach to a previously opened screen session, I have to remember before doing anything else to run ":defflow off". If I forget, I can use the escape character in any window that was already open, but in any newly created windows the escape character doesn't work and I lose all screen features. Because I can't even turn off flow control without using the escape character, the only way to fix it is to exit the shell in the newly created window, returning me to an existing window where I can run ":defflow off".

Attached is a provisional patch that fixes the problem for me. I'm not sure it's correct, however using GDB I verified that the function InitTermcap is where nwin_default.flowflag was being set to FLOW_AUTOFLAG (from where it was later picked up by nwin_compose in MakeWindow). The caller of InitTermcap was FinishAttach.

David Fifield <spangle>

 

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

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by spangle (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 22 Jul 2016 01:56:11 AM UTCspangleAttached File-=>Added 0001-Fix-restoration-of-defflow-setting-on-attachment.patch, #37984

    Back to the top


    Powered by Savane 3.1-cleanup1