Fixing Terminal in MAC OSX - jordy33/turbogears_tutorial GitHub Wiki
Fixing Home, End, Page Up, and Page Down in Mac OSx Terminal Well, if you’re like me, you used to be pro-Windows. Then you found and fell in love with Linux. Then you realized how complicated it was to emulate your Windows software in a Linux environment, or get the Broadcom wireless card on your Dell laptop to work.
Then you discovered the Mac. Sleek. Sexy. Expensive… and the best of both worlds. A Unix-based platform, native Adobe apps, [paid] support, and a real terminal!
But wait, trouble in paradise — our favorite Windows/Linux key commands (Home, End, Page Up, Page Down) aren’t working as inspected. In fact they’re different throughout the OS.
Well, kids, after researching, I’ve finally got a working solution for Terminal.app:
Open Terminal.app Open the Preferences window (CMD+,) Click the Settings tab Select your current Settings theme, and click on the Keyboard tab Edit (or Add) the entry for Home Set Action: to send string to shell: Set the string to \001 (or press Ctrl+a) Edit (or Add) the entry for End Set Action: to send string to shell: Set the string to \005 (or press Ctrl+e) Edit (or Add) the entry for Page Up Set Action: to send string to shell: Set the string to \033[5~ (copy and paste this in) Edit (or Add) the entry for Page Down Set Action: to send string to shell: Set the string to \033[6~ (copy and paste this in) Close the settings window.