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 Logic 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

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 Files:


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by spangle (Submitted the item)

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

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-22 spangle Attached File- => Added 0001-Fix-restoration-of-defflow-setting-on-attachment.patch, #37984

    Back to the top

    Powered by Savane 3.3