Use Home and End button in terminal.app Leopard

Terminal —> Preferences —> Click on tab “Keyboard”

Find key End/Home and click on edit, select action “send string to shell” and press ctrl+e for End and ctrl+a for Home button.

 

Terminal.app change keys

Terminal.app change keys