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


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

Submitted by:  Tyson Nottingham <tgnottingham>
Submitted on:  Sun 18 Feb 2018 09:33:08 AM UTC  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: Confirmed
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: 4.0.3
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 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>
Project 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 File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by amade (Posted a comment)
  • -unavailable- added by tgnottingham (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
    Mon 19 Feb 2018 09:59:59 PM UTCamadeStatusNone=>Confirmed

    Back to the top

    Powered by Savane 3.1-cleanup1