FACT++
1.0
|
void Readline::BindKeySequence | ( | const char * | seq, |
int(*)(int, int) | func | ||
) |
This function is used to bind a key sequence via a call to rl_bind_keyseq.
Readline's manual says about this function:
Bind the key sequence represented by the string keyseq to the function function, beginning in the current keymap. This makes new keymaps as necessary. The return value is non-zero if keyseq is invalid.
Key sequences are escaped sequences of characters read from an input stream when a special key is pressed. This is necessary because there are usually more keys and possible combinations than ascii codes.
Possible key sequences are for example: "\033OP" F1 "\033[1;5A" Ctrl+up "\033[1;5B" Ctrl+down "\033[1;3A" Alt+up "\033[1;3B" Alt+down "\033[5;3~" Alt+page up "\033[6;3~" Alt+page down "\033+" Alt++ "\033-" Alt+- "\033\t" Alt+tab "\033[1~" Alt+tab
seq | The key sequence to be bound |
func | A function of type "int func(int, int) |
Definition at line 648 of file Readline.cc.
Referenced by SetSection(), and Shell::Shell().