If you use a windows ssh terminal client, or even macosx’s terminal.app, the functionality of your page up and page down key may not behave like you want it to. For example, in SecureCRT using pageup will actually page up your scroll buffer, and pagedown will scroll down your page buffer.

You’ll need to remap your keys to send the correct signal to your terminal. Change it from the default system function to “send string” and the following strings:

PageUp = \033[5~
PageDown = \033[6~

\033 is a shortcut for the ESCAPE key (esc) since in some programs you can’t type in the actualy escape key.

Here are some other codes as well in case you need to remap keys.

Pause = \032
Macro = \003 # Break (Shift-Pause)
Home = \033[1~
Insert = \033[2~
Remove = \033[3~ # Delete
End = \033[4~

In SecureCRT the area to remap your keys is Tools -> Keymap Editor.

This is especially handy if you use command line IRC clients such as Irssi or BitchX.


Subscribe to comments via RSS 2.0 feed.
This post has 8 comments. Add your own.

Comments

zoja - 22 Jul 07 at 15:17:43

How about just using shift+fn+pgup/pgdown, which seems to go thru to the program as page up? :)

moses - 16 Aug 07 at 15:49:47

thanks . very helpful

rob terhaar - 30 Oct 07 at 11:40:03

amazing! thank you so much for this tip! This is one of the main things that has been keeping me off of os x!

Thom - 20 Nov 07 at 19:39:51

This is very helpful. I’ve forwarded it to many of my co-workers.

todd - 14 Apr 08 at 02:33:42

IS there a way to map these to windows mobile. I use irssi within pocketputty but cant do page up / page down :(

Chrome - 20 May 08 at 07:48:45

Yay, great, thanks! That solved my terminal –> screen –> irssi problem!

james - 30 Jul 08 at 00:01:23

Worked great for me! thanks so much, back to my terminal again!!