If you like to use the keys for HOME, END, PAGE UP, PAGE DOWN in the Terminal you have to change following setting under Terminal – Preferences – Settings – Keyboard:
- Home / Pos1: \033[1~
- End: \033[4~
- Page Up: \033[5~
- Page Down: \033[6~
This sets the right escape key sequences.
Responses to “Mac: Terminal with Keys HOME, END, PGUP, PGDN”