bugGNU Screen - Bugs: bug #53181, Window opened before setting...

 
 

bug #53181: Window opened before setting hardstatus to lastline has incorrect number of lines

Submitter:  Tyson Nottingham <tgnottingham>
Submitted:  Sun 18 Feb 2018 09:33:08 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  Confirmed
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.0.3
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 19 Feb 2018 09:59:59 PM UTC, comment #2: 

Thanks for report, yes, I can also reproduce with xterm,

Without looking at code, it probably needs to call one of resize functions after "attaching" to new session.

Amadeusz Sławiński <amade>
Group administrator
Sun 18 Feb 2018 09:56:32 AM UTC, comment #1: 

I should mention that I'm using gnome-terminal, and that resizing the gnome-terminal window causes the screen window to get the correct number of lines set. It's possible other terminal emulators mask the issue.

Tyson Nottingham <tgnottingham>
Sun 18 Feb 2018 09:33:08 AM UTC, original submission:  

If you open a window using the screen command in your screenrc before you set your hardstatus to use the (always)lastline option, the window won't set its number of lines correctly to account for the hardstatus line. Consider this screenrc:

screen 1
hardstatus alwayslastline "hi "

If you open screen on a 24 line terminal, the window opened as a result of the "screen 1" command will have its number of lines set to 24 instead of 23 (stty size reports 24 rows). That is, it won't reserve a line for the hardstatus line.

Windows opened outside of the configuration file, or windows opened after setting the hardstatus to use lastline, have the correct number of lines (stty size reports 23 rows). Furthermore, if you open multiple windows in the screenrc like so...

screen 1
screen 2
screen 3
hardstatus alwayslastline "hi "

...only "screen 3" is misconfigured.

I've observed this issue in version 4.03.01 and builds from git source as of Feb 18 2018.

Tyson Nottingham <tgnottingham>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by amade (Posted a comment)
  • -email is unavailable- added by tgnottingham (Submitted the item)
  •  

    There are 0 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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-19 amade StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code