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

Installatron WordPress Upgrade Disables Plugins

I just found a quick tip on the Installatron forums. By default…

UbunTOS – Ubuntu 9.10 + TinyOS 2.x VirtualBox Image

This is my admittedly minor but I hope useful contribution to the…

Remove Duplicate Email Messages in Thunderbird 2.x

I used to use a Thunderbird addon to remove duplicate messages in…

Fixing ip_conntrack Bottlenecks: The Tale Of The DNS Server With Many Tiny Connections

I manage a server which has a sole purpose: serving DNS requests. We use PowerDNS, which has been great. It is a DNS server whose backend is SQL, making administration of large numbers of records very easy. It is also fast, easy to use, open source and did I mention it is free? The server has been humming along for years now. The traffic graphs don’t show a lot of data moving through it because it only serves DNS requests (plus MySQL replication) in the form of tiny UDP packets. Read on to follow my story of how I fixed this tricky problem. No kittens were harmed in the writing of this post.