By default the Mac Terminal Shortcuts: Page Down, Page Up, Home and End keys do not work as you would expect them to. There is a very simple fix for this explained below:
- Open up the terminal
- Go to Preferences
- Go to the Settings Tab
- Go to the Keyboard Section
- Select the end key
- Click the Edit button
- Choose ‘send string to shell’ from the Action drop down menu
- Paste in this value: \033[4~
Here are the values for the commonly used shortcuts in the Mac terminal:
Key | Action |
---|---|
Home | \033[1~ |
End | \033[4~ |
Page Up | \033[5~ |
Page Down | \033[6~ |