Re: [Cgdb-users] key bindings
Brought to you by:
bobbybrasko,
crouchingturbo
From: William P. <bil...@gm...> - 2007-08-11 22:27:13
|
Bob Rossi wrote: > On Tue, Aug 07, 2007 at 05:30:53PM -0400, Bob Rossi wrote: >> On Tue, Aug 07, 2007 at 09:24:41PM +0100, William Pursell wrote: >>> Bob Rossi wrote: >>>> On Sun, Aug 05, 2007 at 08:19:13AM +0100, William Pursell wrote: >>>>> Is there a workaround for this? >>>> Try downloading and installing >>>> http://brasko.net:81/bob/cgdb-20070807.tar.gz >>>> >>>> Then in your ~/.cgdb/cgdbrc do 'set cgdbmodekey=key'. Key can be any >>>> normal key on the keyboard, or a keycode string. For example, <F1> or >>>> <PageUp>. >>>> >>>> Make sure to give us feedback on if this is useful. If so, we'll >>>> consider adding it for the next release. >>> This works to remap the key, but <esc> is now (apparently) ignored >>> and I can't get readline into command mode. >> Oops, I think I see the problem and I've fixed it. I'm not able to get >> into and out of command mode in readline, in cgdb. Try this version and >> let me know. >> >> http://brasko.net:81/bob/cgdb-20070807.tar.gz >> >> The above is a different version of the code, even though it has the >> same name. > > I've committed these changes allong with the documentation. You should > be able to use CGDB with readline in vi mode now. Sorry for the delay in checking this. Although remapping cgdbmodekey works in this version, there is something wrong. The following key sequence causes cgdb to hang, and I'm having to SIGKILL it: set args foo<esc>bc Many of the readline commands work as expected (I've checked: xhjklAaIifFtTbwBW), but 'c' and 'd' are locking it up; it looks like rl_callback_read_char() is never returning. |