(C-a k, C-a C-k)
Kill the current window.
If there is an
execcommand running (see Exec) then it is killed. Otherwise the process (e.g. shell) running in the window receives a
HANGUPcondition, the window structure is removed and screen (your display) switches to another window. When the last window is destroyed,
screenexits. After a kill screen switches to the previously displayed window.
emacsusers may find themselves killing their
emacssession when trying to delete the current line. For this reason, it is probably wise to use a different command character (see Command Character) or rebind
killto another key sequence, such as C-a K (see Key Binding).