Tip of the Day: Fixing Page Up and Page Down Keys in Leopard's Terminal.app

05/11/2008

To expand on my last post about fixing the home and end keys in Terminal here is how to fix the Page Up and Page Down keys.

Follow the directions in my last post, but instead of choosing the end or home keys select the page up and page down keys.

Set action to send string to shell and in the text box copy and paste: \033[6~ for page down, and \033[5~ for page up in the text box under the action pull-down.

If you can't copy and paste, the key sequence goes as the following: ESC [ 6 ~ and ESC [ 5 ~ respectively. Those two key sequences should expand to the above text.

There are 3 comments to this article:

  1. Stefan says:

    05/11/2008

    Hi, this doesen't work for me. Home and end were fixed though but page up and down still produces the ~ character. Stefan
  2. Corey says:

    02/02/2009

    ^^ Ditto. ~ for both.

  3. Daniel says:

    02/12/2009

    Thanks very much for posting this. End, Home, Page Up and Page Down are all working properly for me now.

    @Stephan, Page Up and Page Down produce ~ at the command line, yes; they work inside editors. If you were expecting these keys to scroll through the terminal buffer, you should leave the Keyboard settings at their defaults.

Write your comment: