Re: [PATCH] Add style tui-cursorline command to colorize TUI current line.

Eli Zaretskii via Gdb-patches
2022-07-10T05:04:00Z

> From: Andrei Pikas <gdb@mail.api.win>
> Cc: Eli Zaretskii <eliz@gnu.org>,
> Andrei Pikas <gdb@mail.api.win>
> Date: Sat, 9 Jul 2022 23:20:42 +0300
>
> Adds the ability to customize the colors of the current line of code in TUI.
> This may be desirable when code highlighting is enabled. Because higlighted
> keywords in dark blue color are indistinguishable from a black background
> (which is the default inverse color for a white terminal).
> Here is a screenshot of old and new behavior
> https://drive.google.com/file/d/1BbgNwpFa0DvKX0K9UAd48dEgtn8aChXP/view
> ---
> gdb/NEWS | 4 ++++
> gdb/cli/cli-style.c | 35 +++++++++++++++++++++++++++++++++++
> gdb/cli/cli-style.h | 3 +++
> gdb/doc/gdb.texinfo | 3 +++
> gdb/tui/tui-io.c | 38 ++++++++++++++++++++++++++++++++++----
> gdb/tui/tui-win.c | 1 +
> 6 files changed, 80 insertions(+), 4 deletions(-)

Thanks.

> + tui_cursorline_style.add_setshow_commands (no_class, _("\
> +TUI reverse mode display styling.\n\
> +Configure TUI reverse mode colors\n\
> +The \"tui-cursorline\" style is used when GDB displays the current line of \
> +code."),

This still mentions "reverse mode" for some reason.

The documentation parts are OK.