home | talks | photos | about | resume | contact

Mac Terminal Keys

One of the most annoying things with Apple’s Terminal.app is that the key bindings for paging an home/end are all kinds of screwed up. I’ve actually had these on my MBP for a while but was setting up a new Mac today and figured I’d throw them out here for the benefit of the rest of the web.

To restore keyboard settings that make sense to users coming from other terminals you’ll need to edit the “Keyboard” settings of your favorite theme. These are the correct settings, they all require setting “Action” to “send string to shell”; use the escape key to enter \033:

Key Action
home \033[1~
end \033[4~
page up \033[5~
page down \033[6~

Leave a Reply




DISCLAIMER: The opinions expressed on this website are mine and mine alone, they should not be interpreted as the views of my employers, past or present, my family, my church or my pets. Comments are the property of their posters and I can not be held accountable for those.