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 *
delete_previous_word
new_scroll_end *
scroll_end
toggle_stop_screen
window_swap_3
backspace
delete_to_previous_space
new_scroll_forward
scroll_forward
transpose_characters
window_swap_4
backward_character
end_of_line
next_window
scroll_start
type_text
window_swap_5
backward_history
erase_line
nothing
self_insert
unclear_screen
window_swap_6
backward_word
erase_to_beg_of_line
parse_command
send_line
underline
window_swap_7
beginning_of_line
erase_to_end_of_line
previous_window
shove_to_history
unstop_all_windows
window_swap_8
blink
forward_character
quit_nap
stop_nap
window_balance
window_swap_9
bold
forward_history
quote_character
swap_last_window
window_grow_one
window_swap_10
clear_screen
forward_word
refresh_inputline
swap_next_window
window_move
yank_from_cutbuffer
command_completion
highlight_off
refresh_screen
swap_previous_window
window_kill
---
cpusaver *
join_last_invite *
refresh_status
switch_channels
window_swap_1
---
delete_character
new_beginning_of_line *
reverse
tab_completion
window_swap_10
---
delete_next_word
new_scroll_backward *
scroll_backward
toggle_insert_mode
window_swap_2
---

* No help available

Back

Hosted by www.Geocities.ws

1