bugGNU Screen - Bugs: bug #63473, Attaching to session started with...


bug #63473: Attaching to session started with -Dm vertically centers prompt

Submitter:  None
Submitted:  Mon 05 Dec 2022 05:42:13 PM UTC
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup

Mon 19 Dec 2022 04:27:44 PM UTC, comment #2: 

Looks like the height of the daemon is fixed leading to the problem I encountered.  I wonder if it should make use of the screen size instead or if there is a way to align the resize to the top of the screen instead of the bottom.

Tue 06 Dec 2022 09:13:10 PM UTC, comment #1: 

Looks like the detached command spawns with a height of 24 then the attach command spawns with the real height (say 62) and the ensuing resize results in 38 lines of padding above the prompt.

So I am not sure this is actually a bug although it does bring some difficulties to my use case.  Should the detach command be taking into account the size of the terminal that spawned it?  Is there a way to provide it with a size?  Looking into it now...

Alternatively it would also work if there was a way to make the resize move with the top rather than the bottom as it currently does.

Mon 05 Dec 2022 05:42:13 PM UTC, original submission:  


1. screen -S foo -Dm
2. screen -S foo -x (separate terminal)

Instead of the prompt being at the top of the screen as would be expected it appears in the middle.

Reproduced with 4.08.00 on Ubuntu 20.04 and 4.09.00 on NixOS.

Inspecting the output screen appears to erase with 2J and then move the cursor down with 34B (number changes based on window size of course) but so far I have not been able to figure out why or how to prevent it.



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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


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.


No changes have been made to this item

Back to the top

Powered by Savane 3.13-ee12.
Corresponding source code