public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Phi Debian <phi.debian@gmail.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: TUI enhancement suggestion.
Date: Tue, 9 Jun 2020 16:32:13 +0200	[thread overview]
Message-ID: <CAJOr74jYnKriMyjV6kzbfNGttuNxOxUrAuEit0jP3nvC6icC-A@mail.gmail.com> (raw)
In-Reply-To: <aade34d9-5406-3876-3a01-8da0d202d29a@redhat.com>

Well, I don't mange or setup anything regarding the reverse video.

I use mate (gnome2) on debian, and on some HW I use ubuntu HWE, I use
mainly xterm, but may end up using  terminator, then the VTE.

My terminal basic setup is a darkgreen background, on lite green
foreground, for my day to day work so basically xterm is spawned with

-bg \#003000 -fg green

Then color enter the dance, depending on soft, (gdb vs less vs git  grep
make, name it) things varies but long story short gdb only use the first 8
colors of the colormap (by name) so I use a mapping like this for xterm,
VTE.
c=(
rgb:8888/8888/8888    # black
rgb:ffff/8888/8888    # red
rgb:0000/cdcd/0000    # green
rgb:cdcd/cdcd/0000    # yellow
rgb:8888/8888/ffff    # blue
rgb:ffff/8888/ffff    # magenta
rgb:8888/ffff/ffff    # cyan
rgb:ffff/ffff/ffff    # white
)

So gdb look nice, and the syntax highlight is nice too  (BTW thanx to whom
implemented the syntax highlight, I mean source highlite)

For git or other, we can setup the color we want in the 256 color palette,
so it is easier.

I doubt this setup screw up the reverse video... but If you need me to
tweak thing to test color combinations, let me know.

I can provide a patch built on the lates 9.2 pull if you want to look the
underline on the point line, I find it aesthetical.
I implemented it in a way that extend the 'attribute' not limiting to DIM,
BOLD, and when placed only on the leading white space of the source line it
is not too intrusive.

Lemme know

Cheers,
Phi

  reply	other threads:[~2020-06-09 14:32 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-09  7:55 Phi Debian
2020-06-09 13:04 ` Pedro Alves
2020-06-09 14:32   ` Phi Debian [this message]
2020-06-09 15:03     ` Phi Debian
2020-06-11 10:34       ` Pedro Alves
2020-06-11 13:55         ` Phi Debian
2020-06-15 14:20           ` Pedro Alves
2020-06-15 15:48             ` Hannes Domani
2020-06-15 16:56               ` Phi Debian
2020-06-15 19:30                 ` Pedro Alves
2020-06-15 19:47                   ` Phi Debian
2020-06-15 20:12                   ` Tom Tromey
2020-06-15 20:45                     ` Pedro Alves
2020-06-16  3:38                       ` Phi Debian
2020-06-16 11:02                         ` [PATCH] Add "set style tui-current-position on|off" default to off Pedro Alves
2020-06-16 14:33                           ` Eli Zaretskii
2022-11-15 10:09                           ` Andrew Burgess
2022-11-15 12:15                             ` Pedro Alves
2022-11-16 10:41                               ` Andrew Burgess
2022-11-17  6:30                                 ` Phi Debian
     [not found]   ` <CAJOr74jg==A7NM4qtWEq6neXqxpxxtUEVdDgsahfvRobW+Q0wA@mail.gmail.com>
     [not found]     ` <CAJOr74hQdi6Y4MpGy=J-3CTRA2PP08OebTO2hBFN5NyDRokb3Q@mail.gmail.com>
     [not found]       ` <CAJOr74gyyw4hJm9j0fzKQdzkJKzq=yiAXyZx_c2Q=RA8GTSN7Q@mail.gmail.com>
     [not found]         ` <ed9ea9c6-3d4d-6ba7-4672-bff2b2617012@redhat.com>
2020-06-10 20:25           ` TUI enhancement suggestion Phi Debian
2020-06-11 10:17             ` Pedro Alves

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=CAJOr74jYnKriMyjV6kzbfNGttuNxOxUrAuEit0jP3nvC6icC-A@mail.gmail.com \
    --to=phi.debian@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.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).