How to reproduce (note: suppose C-a is the prefix):

  1. Spawn GNU Screen.
  2. Create a horizontal split (C-a S).
  3. Switch to the newly created split (C-a tab).
  4. Spawn a shell (C-a c).
  5. Now exit from this shell. Type exit or hit Ctrl-D.

Observed behavior: the bottom split becomes empty, with no shell process, but it remains open. Desired behavior: the bottom split automatically closes once the shell exits, and there's only one view (split) in screen.

Is there any configuration to add to ~/.screenrc to achieve the desired behavior?

Similar question: https://stackoverflow.com/questions/40234457/gnu-screen-close-windows-when-command-terminates

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.