Terminal Icon

Creating custom function keys

You can create custom control keys in Terminal to help you work more efficiently. For example, pressing Control-H in some shells is interpreted as a backspace. You can reprogram another key (such as the Escape key) to do this instead.

To create custom function keys:

  1. Choose Terminal > Preferences, and then click Settings.

  2. Click Keyboard.

  3. Choose an existing key from the Key list and click Edit, or click the Add (+) button to create a new key combination.

  4. Choose a key from the Key pop-up menu.

  5. Choose a modifier key from the Modifier pop-up menu (choose “none” if you don’t want to use a modifier with the key you selected).

  6. Choose what you want the key to do from the Action pop-up menu.

  7. Enter the string you want to assign to this key combination, and then click OK.

If you can’t type the characters in the text field, press the Option key while you type. For example, if you press Control key and type H, the cursor backspaces because Control-H means backspace in text fields. Press the Option key, and then press Control-H to enter this as the new control sequence.


Related Topics

function keys