On Thu, 2010-03-11 at 16:07 -0800, Michael Elkins wrote:
On Thu, Mar 11, 2010 at 07:02:20PM -0500, William Case wrote:
On Thu, 2010-03-11 at 18:41 -0500, William Case wrote:
On Thu, 2010-03-11 at 12:58 -0800, Michael Elkins wrote:
You can verify what your own setup does by pressing ^V (or just use cat) and pressing meta-control-b to see what the terminal is sending.
]$ ^V then Alt-Ctrl+b returns "^[" cat returns nothing.
Sorry Michael:
]$ cat -v ^[^B^C
When input cat -v [Enter] then Alt-Ctrl+b
Yes, so you get the same behavior as my setup where Alt-Ctrl-B ends up sending ESC followed by Ctrl-B (the Ctrl-C is just from you exiting the program). You should be able to bind to "\e\C-b" just like I was.
The Ctrl-V trick didn't work because it only echos back the next character. Since Alt-Ctrl-B is returning two keys, it only shows the next one, and then bash is getting the ^B,
So ...
]$ bind "\e\C-b": backward-word
Tried it on a several word command line from History. No motion.