Description of problem: The default /etc/screenrc contains: # # Do not use xterms alternate window buffer. # This one would not add lines to the scrollback buffer. termcap xterm|xterms|xs ti=\E7\E[?47l terminfo xterm|xterms|xs ti=\E7\E[?47l This setting is not applied to modern terminals that identify themselves as xterm-256color (such as vte-based terminals like gnome and xfce terminal). At the same time, all other settings for xterm that are not commented out by default are written as either "xterm*" or "xterm|xterm-*" and hence cover 256 color terminals. That's apparently thanks to our downstream patch screen-4.3.1-screenrc.patch. Please change the above configuration to also cover xterm-* terminals. Version-Release number of selected component (if applicable): screen-4.5.1-1
screen-4.5.1-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8c6caaf851
screen-4.5.1-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a41e73423b
screen-4.5.1-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-114a8b0635
screen-4.5.1-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-114a8b0635
screen-4.5.1-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8c6caaf851
screen-4.5.1-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-a41e73423b
screen-4.5.1-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
Just yesterday, I was investigating why leaving a screen session in PuTTY (on Windows box, ssh'd into Fedora box) leaves junk on the window and determined the issue was with TERM=xterm and thus 'ti' was being overridden. Then today I ran across this issue, and realized that now all terminal emulators with TERM=xterm-256color could experience similar problems. By default, ti=\E[?1049h and te=\E[?1049l. The default 'te' is for returning to the main window buffer after being on the alternate window buffer. However, if already on the main window buffer (as is the case when 'ti' is overridden), at least with some terminal emulators, ----> the window contents are NOT cleared and the cursor is returned to the location previously saved by \E7 <----. When 'ti' is overridden, 'te' needs to be overridden as well. I see two reasonable choices: 1: te= 2: te=\E[H\E[2J In choice 1 (set to empty), the result of leaving a screen session is the cursor is sent to the bottom of the window where both the terminate/detach message and the prompt are printed. In choice 2 (which matches termcap 'cl' or terminfo 'clear' for xterm), the result of leaving a screen session is the window is cleared and the cursor is sent to the top of the window where both the terminate/detach message and the prompt are printed. Choice 2 would be my recommendation as I believe it looks and feels cleaner.
On further research, I discovered that xterm (the program, not the env setting) mangles the backbuffer worse with choice 2 than with choice 1. That said, xterm is bad about mangling the backbuffer in plenty of other cases, so if you care that much, you're probably not going to be using xterm.
screen-4.5.1-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
screen-4.5.1-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.