Re: [Cgdb-users] key bindings
Brought to you by:
bobbybrasko,
crouchingturbo
From: Bob R. <bob...@co...> - 2007-08-06 13:03:34
|
On Sun, Aug 05, 2007 at 08:19:13AM +0100, William Pursell wrote: > > > I just started using cgdb a few weeks ago, and I'm loving it. This > is a great tool. Thanks! > > I'm having a problem that seems related to the discussion in the > archive around Aug '04 with the thread subject "key bindings". Hi William, There currently isn't a workaround that I know of. However, I would love to see this issue fixed. I don't use readline in vi mode, so I have never run into this problem. For starters, how do you put readline in vi mode when using cgdb? Do you have to put something in your .inputrc? If so, what do you put in there? > When in GDB mode and with readline in vi-mode, I can do: > '<esc>kkAfoo' to append the text 'foo' to the command > executed 2 instances back in the history, but I can't OK, I'm confused as to why this works for you, I would like to reproduce it. After you type '<esc>kkAfoo', you are still in GDB mode? I would except that you would be put into the source window. > edit the line beyond that. Ie, if I try to replace > 'foo' with 'bar', I would normally do: '<esc>FfRbar', > but the esc there is being grabbed by cgdb and sending > me into the source window. Yes, this currently makes sense to me. > Is there a workaround for this? Not that I know of. However, I think if we can come up with a solution to this problem, it shouldn't be to hard to add to CGDB. Is the issue that sometimes when you hit <Esc> you want to stay in GDB mode and sometimes you want to go to CGDB mode? How would CGDB know the difference? One solution, which wouldn't be super friendly, is to provide a way to send esc to readline by having an escape key. For instance, if you type '<esc><esc>', than that escape goes to gdb. These solutions tend to be a pain on users I think though. Any ideas? Bob Rossi |