bugGNU Screen - Bugs: bug #65506, bad terminal configuration, which...


bug #65506: bad terminal configuration, which can disable the alternate screen, e.g. with rxvt

Submitter:  Vincent Lefèvre <vinc17>
Submitted:  Fri 22 Mar 2024 03:00:51 PM UTC
Category:  None Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.9.1
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 15 May 2024 03:17:32 PM UTC, comment #2: 

There's still the same issue with the master branch, c184c6ec27683ff1a860c45be5cf520d896fd2ef.

Screen version 4.99.0 (build on 2024-05-15 17:05:55)

Vincent Lefèvre <vinc17>
Fri 22 Mar 2024 04:33:07 PM UTC, comment #1: 

Thanks for reporting, Vincent.
Can you test it again, but master branch please?

Alexander Naumov <anaumov>
Group administrator
Fri 22 Mar 2024 03:00:51 PM UTC, original submission:  

At least with GNU Screen from 4.0.3 (issue found in 2011) to 4.9.1 (current version) and rxvt from 9.09 to 9.31 (current version), the screen contents are not restored when a GNU Screen session is detached.

To reproduce the problem:

1. Run rxvt-unicode.
2. Run some commands, just to generate contents in the screen.
3. Run "screen".
4. Detach the GNU Screen session ([Cmd key] d), or simpler: terminate the shell (this will close the session and quit "screen").

Quoting https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618332#10 (Emanuele Giaquinta):

> This happens because screen sends "is2" after "smcup", and is2 disables the alternate screen buffer. The problem does not occur in xterm because xterm's is2 does not disable the alternate screen buffer.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=618332#25 (Marc Lehmann) gives additional explanations.

So, according to both, this is due to bad terminal configuration in GNU Screen.

Vincent Lefèvre <vinc17>


(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


Carbon-Copy List
  • -email is unavailable- added by anaumov (Posted a comment)
  • -email is unavailable- added by vinc17 (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.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-12ab.
    Corresponding source code