This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug tui/15163] Vi settings within ~/.inputrc prevententering/exiting TUI via C-x a
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 25 Feb 2013 13:02:25 +0000
- Subject: [Bug tui/15163] Vi settings within ~/.inputrc prevententering/exiting TUI via C-x a
- Auto-submitted: auto-generated
- References: <bug-15163-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15163
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
CC| |palves at redhat dot com
--- Comment #1 from Pedro Alves <palves at redhat dot com> 2013-02-25 13:02:25 UTC ---
> I am unaware of any gdb command that will enter/exit TUI mode independently of
the key combination. Is there one?
Commands like "tui foo", and "layout next" enter the TUI.
I'm not aware of any GDB command to exit the TUI, and looking at the code, I
can't find any that would do it as side effect.
However, TUI enter/exit is bound to the readline "tui-switch-mode"
command/function:
> rl_add_defun ("tui-switch-mode", tui_rl_switch_mode, -1);
One should be able to use that to bind any key combo to TUI enter/exit in the
inputrc file, per the "Key Bindings" node in the readline manual. However, I'm
not familiar readline's vi mode (emacs user here), and whether key bindings
apply in that mode.
Let me know if that helps.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.