bind
Synopsis:
bind [<key/series> [<function> [<args>] ] ]
Description:
bind is used to bind a keystroke (or series of keystrokes) to a given
function or command. Traditionally, such key bindings have been used for cursor
control and input line editing. However, there really is no limit to what can
be bound to a key. Most often, functions are bound to a control key (typing
a key while depressing the control key on the keyboard). TekNap provides a mechanism
for overriding existing bindings to insert literal characters, by binding a
key to quote_character.
Using bind with no specified function will display the function bound
to the given key. If no key is given, all bindings are displayed. You can use
the "termcap" name in order to bind to a specific key. ie, key_f1, key_f2 etc.
Examples:
To bind the quote_character function to ^Q (control-Q):
/bind ^Q quote_character
To bind the right arrow
(ESC-[-C) to forward_character:
/bind ^[ meta1_character
/bind meta1-[ meta2_character
/bind meta2-C forward_character
See Also:
Key_Bindings
parsekey
rbind
Other Notes:
Case is important with literal characters with bind. However, it is not
important in control characters. Thus, 'C' and 'c' are treated independently,
but '^C' and '^c' are the same. Be careful when binding literal keys (such as
'c' alone) to functions. If the wrong keys get bound, it may be impossible to
unbind them without restarting the client.
|
altcharset
*
|
new_scroll_end
*
|
scroll_end
|
toggle_stop_screen
|
window_swap_3
|
|
|
new_scroll_forward
|
scroll_forward
|
transpose_characters
|
window_swap_4
|
||
|
scroll_start
|
type_text
|
window_swap_5
|
|||
|
self_insert
|
unclear_screen
|
window_swap_6
|
|||
|
send_line
|
underline
|
window_swap_7
|
|||
|
shove_to_history
|
unstop_all_windows
|
window_swap_8
|
|||
|
quit_nap
|
stop_nap
|
window_balance
|
window_swap_9
|
||
|
quote_character
|
swap_last_window
|
window_grow_one
|
window_swap_10
|
||
|
refresh_inputline
|
swap_next_window
|
window_move
|
yank_from_cutbuffer
|
||
|
refresh_screen
|
swap_previous_window
|
window_kill
|
---
|
||
|
cpusaver *
|
join_last_invite
*
|
refresh_status
|
switch_channels
|
window_swap_1
|
---
|
|
new_beginning_of_line
*
|
reverse
|
tab_completion
|
window_swap_10
|
---
|
|
|
new_scroll_backward
*
|
scroll_backward
|
toggle_insert_mode
|
window_swap_2
|
---
|
* No help available