From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by sourceware.org (Postfix) with ESMTPS id F18433840C1D for ; Tue, 9 Jun 2020 14:32:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F18433840C1D Received: by mail-qk1-x732.google.com with SMTP id l17so7127002qki.9 for ; Tue, 09 Jun 2020 07:32:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Mm1532ENYyg1I1X9ThnVycohGgiL7/vZO87x4GLht0k=; b=fTU6+umdwcyEZBI87mh/kf+O4G6G/lFBTdHuC1fQ1YExVEH5yQbZ1n2quLSUraQGEz 6suliWVj0JQSElP4omjlsreiAkwCyZPEp0ZdJLtlDzNhQnFIXCNiIBoQ8HpAg0TXjSVU 7sTe3IMPPaCzkR6G0B1pZD2lC1scS1j/Hbp5p5unyK4+lJ3hoQP3xyAWqg4b65DecKRJ 79flfVVmP8F9J7qo+OCi3679Ysk3TP/IxZV2msL3GQz37isXKP3Vf6otAPa0etgegda3 IriQEN1OnQFVvJRFI+7PVuouXt9iNLXrPjqyNk8fstHk8MUNcNqSw1SwWFeleLxZges2 27zw== X-Gm-Message-State: AOAM531ytUN8pdq07zbC1BPdXDumjup0a8C8KwzlfF0TngPy05obqG+m ZMQ6IX4aBfDVUzivHjckR13dgSVGRAVEwffNC8dyXorD X-Google-Smtp-Source: ABdhPJwOMCJqe+vKUBQqjOrHILmEQB0RVCIaeJ7+PA4BNbsLiHJCC+Mmwa/JQEp5tu8bRIQjTDf2oBiysrCe31XmWQg= X-Received: by 2002:ae9:e844:: with SMTP id a65mr11474847qkg.266.1591713144557; Tue, 09 Jun 2020 07:32:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Phi Debian Date: Tue, 9 Jun 2020 16:32:13 +0200 Message-ID: Subject: Re: TUI enhancement suggestion. To: Pedro Alves Cc: gdb-patches@sourceware.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jun 2020 14:32:26 -0000 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