screen: Focus
9.2 Focus
=========
-- Command: focus [ next|prev|up|down|left|right|top|bottom ]
('C-a <Tab>')
Move the input focus to the next region. This is done in a cyclic
way so that the top left region is selected after the bottom right
one. If no option is given it defaults to 'next'. The next region
to be selected is determined by how the regions are layered.
Normally, the next region in the same layer would be selected.
However, if that next region contains one or more layers, the first
region in the highest layer is selected first. If you are at the
last region of the current layer, 'next' will move the focus to the
next region in the lower layer (if there is a lower layer). 'Prev'
cycles in the opposite order. ⇒Split for more information
about layers.
The rest of the options ('up', 'down', 'left', 'right', 'top', and
'bottom') are more indifferent to layers. The option 'up' will
move the focus upward to the region that is touching the upper left
corner of the current region. 'Down' will move downward to the
region that is touching the lower left corner of the current
region. The option 'left' will move the focus leftward to the
region that is touching the upper left corner of the current
region, while 'right' will move rightward to the region that is
touching the upper right corner of the current region. Moving left
from a left most region or moving right from a right most region
will result in no action.
The option 'top' will move the focus to the very first region in
the upper list corner of the screen, and 'bottom' will move to the
region in the bottom right corner of the screen. Moving up from a
top most region or moving down from a bottom most region will
result in no action.
Useful bindings are (h, j, k, and l as in vi):
bind h focus left
bind j focus down
bind k focus up
bind l focus right
bind t focus top
bind b focus bottom
Note that 'k' is traditionally bound to the 'kill' command.