From: Pedro Alves <palves@redhat.com>
To: Tom Frank <gdbhelper@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: How to customize the shortcut key for gdbtui ?
Date: Fri, 06 Jul 2012 15:31:00 -0000 [thread overview]
Message-ID: <4FF704B2.8040702@redhat.com> (raw)
In-Reply-To: <CAMHBcgo7D9XGLGc8voDvEUnr1PmSKf4keckdDfLRXNJQd=MVqQ@mail.gmail.com>
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
prev parent reply other threads:[~2012-07-06 15:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 5:03 Tom Frank
2012-07-06 15:31 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FF704B2.8040702@redhat.com \
--to=palves@redhat.com \
--cc=gdb@sourceware.org \
--cc=gdbhelper@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).