Page down in terminal

terminal

How can I "page down" in the terminal?

Best Answer

In addition to VxJasonxV’s answer (which is correct), if you want to modify your terminal behavior so using up or down does a pageup/pagedown in vim (and others), you can go to:

Terminal -> Preferences -> Click on the Settings Toolbar, then the Keyboard Tab.

Add a new keys like this: (showing one example below)

  • Page Up: \033[5~
  • Page Down: \033[6~
  • Home: \033[4~
  • End: \033[1~

Here’s an example with the “Cursor up”:

alt text

Now you can press Up/Down and it will do the pageup/down. I suggest you add a modifier (like Control). Sadly, you can’t use the “Fn” key as a modifier.

Note: By default, Control + Cursor Left is delete until the end of the line and control+cursor right is insert (in vim at least), so you can use another modifier if you don’t want to change those.