Per default windows are removed from the window list as soon as the windows process (e.g. shell) exits. When a string of two keys is specified to the zombie command, `dead' windows will remain in the list. The
killcommand may be used to remove the window. Pressing the first key in the dead window has the same effect. Pressing the second key, however, screen will attempt to resurrect the window. The process that was initially running in the window will be launched again. Calling
zombiewithout parameters will clear the zombie setting, thus making windows disappear when the process terminates.
As the zombie setting is affected globally for all windows, this command should only be called
defzombie. Until we need this as a per window setting, the commands
Optionally you can put the word
onerrorafter the keys. This will cause screen to monitor exit status of the process running in the window. If it exits normally ('0'), the window disappears. Any other exit value causes the window to become a zombie.