This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to customize the shortcut key for gdbtui ?


On 07/04/2012 06:03 AM, Tom Frank wrote:
> I want to change the ctrl-L  shortcut key to ctrl-a?
> 
> 
> How can I modify the source code  for this ?

gdb uses readline, so what you need is to tweak your readline
bindings (also used by bash).  E.g., you can bind the readline
clear-screen function to c-a by putting

"\C-a": clear-screen

in your .inputrc.  See the GNU Readline manual.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]