readline + binding; still frustrated after 4 yrs of trying
Michael Elkins
me at sigpipe.org
Fri Mar 12 00:07:52 UTC 2010
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,
me
More information about the users
mailing list