Merge Irssi 0.8.16-rc1
[silc.git] / apps / irssi / docs / help / in / bind.in
1
2 @SYNTAX:bind@
3
4 Bind some action to specified keystroke. Remember that all characters
5 in keystrokes are case-sensitive! Uppercase letter usually means that
6 you need to keep SHIFT pressed to get the key to work.
7
8 Most most commonly used keystrokes are:
9
10  ^X - Ctrl-X
11  meta-x - Meta-x (Meta is quite often Alt-key in PCs, ESC-x works too)
12
13 Irssi has by default also defined several other keys which you can use:
14
15  return                  - The return/enter key
16  space, backspace        - Space / backspace
17  up, down, left, right   - Arrow keys
18  cleft, cright           - Ctrl-left/right
19  home, end, prior, next  - prior = Page Up, next = Page Down
20  insert, delete
21
22 The keystroke can contain as many key presses as you want, and you can
23 define names for different key sequences to use them more easily (the
24 keys above are done like that). For example, you may want to manage
25 windows with ^W key, so that ^W^C creates new window, ^W^K kills the
26 active window, etc. you may do it like:
27
28  /BIND ^W^C /WINDOW NEW HIDE
29  /BIND ^W^K /WINDOW KILL
30
31 But maybe you wish to give these binds to other people who want to use
32 some other key than ^W, then it would be better done as:
33
34  /BIND ^W key window
35  /BIND window-^C /WINDOW NEW HIDE
36  /BIND window-^K /WINDOW KILL
37
38
39 To get a list of all bindable commands use /bind -list.
40
41 Examples:
42
43 Clear screen:
44   /BIND meta-c /CLEAR
45
46 People with qwertz layout probably want to swap meta-y and meta-z:
47   /BIND meta-z change_window 16
48   /BIND -delete meta-y