- 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