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.

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

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

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

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

Comments are closed.

You May Also Like

Ubuntu Server in Place Network Upgrade From 8.10 to 9.04

It is easy to do an in-place upgrade of Ubuntu Server from…

How to Stop an Apache DDoS Attack with mod_evasive

The first inkling that I had a problem with a DDoS (Distributed Denial of Service) attack was a note sent to my inbox: lfd on server1.myhostname.com: High 5 minute load average alert – 89.14 My initial thought was that a site on my server was getting Slashdotted or encountering the Digg or Reddit effect. I run Chartbeat on several sites where this occasionally happens and I will usually get an alert from them first. A quick look at the Extended status page from Apache showed that I had a much different kind of problem.

My MySQL Binary Log files are taking up all my disk space!

…and other MySQL Oddities. If your MySQL binary log files are a…

Adding memory swap space to the N800

Adding swap space is pretty easy. This will add more, but slower…