File README.md changed (mode: 100644) (index 6449ba7..9ca4980) |
... |
... |
INSTALLATION |
20 |
20 |
* add hh to $PATH |
* add hh to $PATH |
21 |
21 |
* you may also bind hh to a BASH key (e.g. F12) by adding bind to .bashrc: |
* you may also bind hh to a BASH key (e.g. F12) by adding bind to .bashrc: |
22 |
22 |
|
|
23 |
|
bind '"\e[24~":"hh"' |
|
|
23 |
|
`bind '"\e[24~":"hh"'` |
24 |
24 |
|
|
25 |
25 |
To determine the character sequence emitted by a pressed key in terminal, |
To determine the character sequence emitted by a pressed key in terminal, |
26 |
26 |
type CTRL-v and then press the key. For example, F12 gives "^[[24~" (no quotes). |
type CTRL-v and then press the key. For example, F12 gives "^[[24~" (no quotes). |
27 |
27 |
Replace the "^[" with \e. To clear the line first, add “\C-k \C-u” in front of |
Replace the "^[" with \e. To clear the line first, add “\C-k \C-u” in front of |
28 |
28 |
the actual command to clear the line first. |
the actual command to clear the line first. |
29 |
29 |
|
|
30 |
|
bind '"\e[24~":"\C-kX\C-uhh\n"' |
|
|
30 |
|
`bind '"\e[24~":"\C-kX\C-uhh\n"'` |
31 |
31 |
|
|
32 |
32 |
Binding using Ctrl-F12: |
Binding using Ctrl-F12: |
33 |
33 |
|
|
34 |
|
bind '"\e[24;5~":"\C-kX\C-uhh\n"' |
|
|
34 |
|
`bind '"\e[24;5~":"\C-kX\C-uhh\n"'` |
35 |
35 |
|
|
36 |
36 |
Check: |
Check: |
37 |
37 |
|
|
38 |
|
bind -S |
|
|
38 |
|
`bind -S` |
39 |
39 |
|
|
40 |
40 |
|
|
41 |
41 |
BUGS |
BUGS |