Wed 14 Mar 2012 10:17:20 PM UTC, original submission:
## Background
I'm writing a script that compiles a lot of software.
[ screen is executed like: screen make install clean ]
[ screen is executed like: screen make install clean ]
## Actual behavior
When screen finishes successfully, it exits with a message at the bottom saying:
[screen is terminating]
The rest of the screen is blank, thus the original script output is discarded and won't return after screen exits successfully. This behavior has also been confirmed with todays Git release. On IRC it is said this only happens on tty terminals. I'm logged in via SSH on FreeBSD platform, if that makes any difference.
## Expected behavior
I would want screen to restore the original terminal contents when it exits succesfully. I know screen can do this, because when i detach a screen using Control+A followed by 'd' character, the original terminal contents is restored. Screen should use the same behavior when exiting.
To get an idea what i expect:
[screen is terminating]
[screen is terminating]
This is what i should see, i think. Just one line of output with the original contents restored. A bonus feature would be an option to silence the "screen is terminating" message, so we can use screen for cool build scripts. :)
|