This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: Add new 'layout cli' command.
- From: Pedro Alves <palves at redhat dot com>
- To: Andrew Burgess <andrew dot burgess at embecosm dot com>, gdb-patches at sourceware dot org
- Date: Fri, 22 May 2015 01:29:17 +0100
- Subject: Re: [PATCH] gdb: Add new 'layout cli' command.
- Authentication-results: sourceware.org; auth=none
- References: <cdefb1cb466c17bb9668b60f04fb1ea3b7bfe028 dot 1432245947 dot git dot andrew dot burgess at embecosm dot com>
On 05/21/2015 11:06 PM, Andrew Burgess wrote:
> It always seemed a little strange to me that it's possible to enter
> TUI mode by typing commands at the CLI, but to leave TUI mode you need
> to know the readline bindings.
Agreed.
>
> This commit adds a new 'layout cli' command to leave tui mode, which
> is in addition to the readline bindings.
IIUC, "layout prev/next" doesn't cycle this layout. That seems odd.
I think it either should, or this should be a separate command.
A "layout cli" layout could reasonably be a layout that (with tui enabled)
only showed the console window, with status line at the top, similar to
"layout src; winheight src 3" (3 just because one can't go lower
than 3). I supposed we could leave room for adding that later by calling
this one e.g., "layout off".
I notice that we have no blessed way to go back to the same layout that
was current when the tui was last active. "layout current" would be odd,
given that the current is "cli"... Hmm, "layout last" (like "cd -")?
Not sure...
A separate command ("tui enable/disable"? "set tui enabled on/off"?)
would be a more direct mapping to the readline bindings.
What do you think?
Thanks,
Pedro Alves