Tip of the Day: Fixing Home and End Keys in Leopard's Terminal.app 2
By default in Terminal.app the home and end scroll the the top of the screen and the end of the screen buffer respectively. To make Terminal act like a normal console (in other words the home key moves the cursor to the beginning of the line, and the end key moved the cursor to the end of the line, etc) do the following:
- Open Terminal
- Open Terminal's preferences
- Goto the Settings Tab
- Goto the Keyboard Tab as shown below

- Select the end key settings
- Change the action setting to send string to shell as below

- In the text box below the action setting, enter the key combination of ctrl-e.
- The text \005 should appear like below

- Click OK
- Select the home key
- Change the action setting to send string to shell
- For this key enter the key combination of ctrl-a
- The text \001 should appear like below

- Click OK and close the preferences.
The end and home keys should now act like a normal console in Terminal. Enjoy!
Resource: http://blog.yiqiang.org/2007/12/fixing-home-and-end-key-for-terminalapp.html
Trackbacks
Use the following link to trackback from your own site:
http://www.sysadminschronicles.com/trackbacks?article_id=tip-of-the-day-fixing-home-and-end-keys-in-leopards-terminal-app&day=11&month=05&year=2008
Thanks – Thats one less annoying Mac-ism.
Thank you, this was driving me absolutely crazy!