Multiple Windows
****************

Oleo can split a spreadsheet into two or more windows. The windows showing the spreadsheet can show different parts of it. Only one spreadsheet can be displayed at a time.

Concepts of Oleo Windows
========================

At any time, one of the windows is the selected window. The cell cursor is located in this window.  Each other window has a location of point as well, but since the terminal has only one cell cursor there is no way to show where those locations are.

Commands to move the cell cursor affect the cell cursor for the selected Oleo window only.  They do not change the value of the cell cursor in any other Oleo window.

When there are multiple windows,  they can have different regions, because they can have different values of the cell cursor.

Splitting Windows
=================

C-x 2
     Split the selected window into two windows, one above the other (split-window-vertically).

C-x 5
     Split the selected window into two windows positioned side by side (split-window-horizontally).

The command C-x 2 (split-window-vertically) breaks the selected window into two windows, one above the other.  Both windows start out displaying the cell cursor in the same position.  By default the two windows each get half the height of the window that was split.

C-x 5 (split-window-horizontally) breaks the selected window into two side-by-side windows.

Using Other Windows
===================

C-x o
     Select another window (other-window).  That is o, not zero.

M-C-v
     Scroll the next window (scroll-other-window).

To select a different window, use C-x o (other-window). That is an o, for `other', not a zero.  When there are more than two windows, this command moves through all the windows in a cyclic order, generally top to bottom and left to right.  After the rightmost and bottommost window, it goes back to the one at the upper left corner. When the minibuffer is active, the minibuffer is the last window in the cycle; you can switch from the minibuffer window to one of the other windows, and later switch back and finish supplying the minibuffer argument that is requested.

The usual scrolling commands  apply to the selected window only, but there is one command to scroll the next window. C-M-v (scroll-other-window) scrolls the window that C-x o would select.

Deleting and Rearranging Windows
================================

C-x 0
     Get rid of the selected window (delete-window).  That is a zero.

C-x 1
     Get rid of all windows except the selected one (delete-other-windows).

To delete a window, type C-x 0 (delete-window).  (That is a zero.)  The space occupied by the deleted window is given to an adjacent window.  Once a window is deleted, its attributes are forgotten.

C-x 1 (delete-other-windows) is more powerful than C-x 0; it deletes all the windows except the selected one (and the minibuffer); the selected window expands to use the whole frame.