| 1 |
! $Id: examples,v 1.3 2002-02-19 19:43:28 f Exp $ |
| 2 |
! |
| 3 |
! Copyright (c) 1990-2001 Michael Sandrof, Troy Rollo, Matthew Green, |
| 4 |
! and other ircII contributors. |
| 5 |
! |
| 6 |
! All rights reserved. See the HELP SCROLLZ COPYRIGHT file for more |
| 7 |
! information. |
| 8 |
! |
| 9 |
Examples of the BIND function: |
| 10 |
|
| 11 |
BIND ^X META2_CHARACTER |
| 12 |
Makes control X a meta key. |
| 13 |
|
| 14 |
BIND ^Xl parse LIST |
| 15 |
Binds the meta sequence control X followed by l to perform a LIST. |
| 16 |
This binding is only valid if ^X was previously bound |
| 17 |
to a meta function (as was done in the first example). |
| 18 |
|
| 19 |
BIND META1-u BACKWARD_HISTORY |
| 20 |
by default, the escape key is bound to META1_CHARACTER, so this |
| 21 |
binding makes the escape u key sequence show the last command |
| 22 |
history entry. Note that more than one key may be bound to |
| 23 |
*any* function. |
| 24 |
|
| 25 |
BIND ! type Bang! |
| 26 |
This binds the ! (exclamation mark) to type the word "Bang!" |
| 27 |
into the input line whenever it is hit. |
| 28 |
|
| 29 |
BIND META1-[ meta2 |
| 30 |
BIND meta2-A BACKWARD_HISTORY |
| 31 |
BIND meta2-B FORWARD_HISTORY |
| 32 |
BIND meta2-D BACKWARD_CHARACTER |
| 33 |
BIND meta2-C FORWARD_CHARACTER |
| 34 |
This sequence would bind your arrow keys to the functions listed. |