Closed GoogleCodeExporter closed 9 years ago
This is a shortcoming in bash's default configuration. To get those keys
working, add
the following two lines to the readline configuration file ~/.inputrc:
"\e[1~": beginning-of-line
"\e[4~": end-of-line
Alternatively, bash's builtin 'bind' command can be used to change key bindings.
Original comment by andy.koppe
on 3 Mar 2009 at 2:20
This works. Thanks!
Original comment by servaasg
on 3 Mar 2009 at 3:46
Here are a few more inputrc settings you might find useful:
# ctrl-left/right
"\e[1;5D": backward-word
"\e[1;5C": forward-word
# ctrl-up/down
"\e[1;5A": history-search-backward
"\e[1;5B": history-search-forward
# ctrl-backspace/delete
"\C-_": backward-kill-word
"\e[3;5~": kill-word
# alt-backspace
"\e\d": undo
Original comment by andy.koppe
on 3 Mar 2009 at 5:24
I had already found ctrl-left/right, but this makes my list complete. Especially
history-search-* is a great find.
Original comment by servaasg
on 4 Mar 2009 at 1:24
Actually this is a MinTTY problem after all: it's not compatible with xterm's
default
config, which sends "PC-style" ^[[H and ^[[F and not VT220-style ^[[1~ and
^[[4~. Sorry.
Fixed in r180 on 0.3 branch.
Original comment by andy.koppe
on 15 Mar 2009 at 6:44
Original comment by andy.koppe
on 16 Mar 2009 at 12:31
Original issue reported on code.google.com by
servaasg
on 3 Mar 2009 at 10:50