[Cgdb-devel] Bug: the default readline hotkeys Alt-X don't work in cgdb
Brought to you by:
bobbybrasko,
crouchingturbo
From: Kuang H. <ic...@gm...> - 2008-09-26 07:22:06
|
Hi all, I'm a new user of cgdb and find it very useful. The vi key binding is very nice, too, since I'm a vim user. Thank you, cgdb developers! I'm using cgdb 0.6.4 on a linux box (Ubuntu 8.04), with libreadline v5.2. The default readline hotkeys Alt-X (e.g. Alt-P/N for history-search-backward/history-search-forward, Alt-F/B for moving a word forward/backward) do not work in cgdb on my machine. Any Alt-X combination key in the gdb window will result in switching to the source code window, just as an ESC would do. I've tried to read cgdb's source code to figure out why, but the code is more complex than I've thought. Any enlightenment would be welcome. Also, I personally like to define PageUp/PageDown in my ~/.inputrc to do the same thing as Alt-P/N, but since PageUp/PageDown have been used by cgdb to scroll the screen, I could not use these hotkeys as I like to. I've changed the code to fix that (for myself), but I guess there is no generic solution since all the hotkeys cgdb use are hard coded into the source. Best regards, -- Kuang He |