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~

tagged with: 
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