Keywords: teapot

# Command Mode

Right after starting teapot, you are in the command mode. Many functions from the command mode are also available from menus, but using keys is faster and some things, like moving the cell cursor, are only available through keys. Table tab:Key-Bindings-in lists all available key bindings.

Table 1: Key Bindings in Command Mode
Function Key | ASCII Key | Function
Next Line | Ctrl-N | Cursor down
Previous Line | Ctrl-P | Cursor up
Begin | Ctrl-A | Cursor to column 0
End | Ctrl-E | Cursor to last column
| + | Cursor to next layer
| - (Dash) | Cursor to previous layer
| < | Cursor to line 0
| > | Cursor to last line
| _ (Underscore) | Cursor to layer 0
| * | Cursor to last layer
| Ctrl-X < | One page left
| Ctrl-X > | One page right
F10 | / | Main menu
F2 |  | Save menu
F3 |  | Load menu
| Ctrl-X Ctrl-R | Load file
Enter | Ctrl-J, Ctrl-M | Edit cell contents
| ``, @, digit, letter | Overwrite cell contents
Meta-Enter | Esc Ctrl-J, Esc Ctrl-M | Edit clocked cell contents
Backspace | Ctrl-H | Edit cell contents
| . (Period) | Mark block
| Ctrl-L | Redraw screen
| Ctrl-Y | Paste block
| Ctrl-R | Reset sheet
F9 | Ctrl-S | Clock sheet
| Esc z | Save and quit
| Ctrl-X Ctrl-C | Quit
Next Page | Ctrl-V | One page down
Previous Page | Meta-V | One page up
Cancel | Ctrl-G, Ctrl-C | Abort current action

. (Period) marks blocks: The first time it marks the beginning of a block, which is then extended by moving the cell cursor. The next time, it marks the end of the block which lets you move the cell cursor after without changing the block. The third time, it removes the block marks again.