I recently installed Leopard (Mac OSX 10.5) on a new mac. There are a few factory settings I usually change on a new installation, although by far fewer than I do typically with Windows. One of them is the default keyboard configuration for Ctrl+Left Arrow, Ctrl+Right Arrow, Page Up, Page Down, Home, and End in Terminal. The default settings drive me a bit potty since I'm used to using Linux and emacs every day at work.
Changing them is easy, fortunately. Just visit Keyboard under Settings in Terminal->Preferences, and modify the following keys, so that their action matches the value shown. You can edit the keystroke for an item by double clicking on it, selecting "send string to shell", and typing the indicated keys.
| Key | Action | Keystrokes |
|---|---|---|
| control cursor left | \033b | ESC b |
| control cursor right | \033f | ESC f |
| end | \005 | CTRL+e |
| home | \001 | CTRL+a |
| page down | \026 | CTRL+v |
| page up | \033v | ESC v |

13 comments: