A Screen session can hold a shell, log watcher, and editor even when the terminal no longer has room to display them together. Removing a split region gives the remaining view more space.

A region is an area of the terminal that displays a Screen window. Removing that area leaves its window and running program in the session, available for selection in a remaining region.

Region removal works with both horizontal and vertical splits in an attached session. It affects the focused region, so the cursor must be in the area to close; removing the last remaining region has no effect.

Steps to remove a split region in Screen:

  1. Move focus to the region you want to remove.
    C-a Tab

    C-a means Ctrl+a with the default prefix. Each shortcut starts with Ctrl+a, followed by the next key after releasing both keys. Repeating C-a Tab cycles through the regions. The cursor below is in the lower logs region of a two-region layout.

  2. Remove the focused region with uppercase X.
    C-a X

    With two regions, the split disappears and the remaining region expands. Other regions stay visible in larger layouts. The logs window keeps running. Lowercase x locks the display instead of removing a region.

  3. Open the window list to check that the removed region's window is still available.
    C-a "

    Both shell and logs remain in the list even though only one region is displayed.

  4. Select the window previously displayed in the removed region.
    Enter

    If a different window is highlighted, the arrow keys change the selection. The logs window reappears with its running program in the single remaining region, without a split separator.

Share this guide