Mac OSX Terminal Keyboard Mappings (Home, End, Page Up/Down)

I search for this every time I set up a new Mac, and every time it takes a bit of Googling. Here's how to standardize the Home, End, Page Up and Page Down keys in the Mac OSX Terminal application:
Home
\033[1~
End
\033[4~
Page Up
\033[5~
Page Down
\033[6~
In addition, I like to check the box "Send CTRL+H for delete". I have a ZSH setting that depends on this.

0 TrackBacks

Listed below are links to blogs that reference this entry: Mac OSX Terminal Keyboard Mappings (Home, End, Page Up/Down).

TrackBack URL for this entry: http://aaronlongwell.com/mt/mt-tb.cgi/24

2 Comments

I also searched for this and this has been a big help. Many thanks for posting this information. This page also was the first hit on google for "page down terminal mac keyboard", good job.

Well... I thought this had solved my problem, but it's not working for me on Leopard.

1. When I type the character strings, Terminal automatically doubles the backslash, and when I save the new string, it's double-backslashed in the listing as well; original entries in the list only have a single backslash. And Home/End don't work.

2. So, I got a bit tricky, copied the string from an entry already defined, pasted it into the character string and the backslash was NOT doubled. But Home/End still don't work.

Any suggestions? Thanks...jon

Leave a comment


Type the characters you see in the picture above.

Who's this guy?

Aaron Longwell is Chief Web Craftsman at New Media Logic Corporation in Coeur d' Alene, Idaho. As a professional software developer for 12 years and a student of public policy, he occasionally has interesting things to say about software, technology, culture and politics.

Subscribe to feed Subscribe to my RSS Feed

  • View Aaron Longwell's profile on LinkedIn
  • Recommend Me