After upgrading from screen-4.0.2 to r1 when I detach from screen my Konsole, Xterm, SSH session doesnt get cleaned. I have to manualy give "clear" command to fix things. Reproducible: Always Steps to Reproduce: 1. Start screen and get some output on it (mc, ls /usr/portage etc). 2. Detach from screen. Actual Results: All my screen stuff was on my xterm/konsole. Expected Results: I get previus xterm/konsole state or empty konsole at least. It doesnt affect nonX konsoles. This bug seems to be caused by resolving bug #61195.
Created attachment 49471 [details] Bug example
This is due to bug #61195, I've changed /etc/screenrc to include a tweak to allow scrolling in xterm terminals by not using xterm's alternate window buffer. The downside of this is, that screen uses the normal window buffer and that results in leaving the contents after detaching. Guess we have to decide here wether we want the scroll feature or if we want a clean screen detach by default. shell-tools, comments? I like to have scrolling by default.
swegener, likewise.
We'll keep scrolling as default. You can comment the line in /etc/screenrc or add a termcapinfo to you ~/.screenrc to revert back to the old behaviour.