Fixing the Mac OS X Terminal

As a part of my conversion from Linux to Mac OS X, I’ve noticed a few problems with the Terminal app. While in Linux, the Home, End, Page Up, and Page Down keys all worked correctly. In Mac OS X, they Page Up/Down effected the scroll back, rather than sending the keys to nano for example. End and Home did nothing at all.

Terminal > Preferences > Settings > Keyboard

Use the “send string to shell” option for each key.

Home \033[1~
End \033[4~
Page Up \033[5~
Page Down \033[6~