From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DC3BE138335 for ; Tue, 7 May 2019 06:19:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B07CFE08D4; Tue, 7 May 2019 06:19:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8E8E7E08D4 for ; Tue, 7 May 2019 06:19:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 02FBC3439D5 for ; Tue, 7 May 2019 06:19:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E4CE45DA for ; Tue, 7 May 2019 06:19:50 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1557166364.d26a4c6fab322e4310fad304258300e548384115.grobian@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: /, libq/ X-VCS-Repository: proj/portage-utils X-VCS-Files: TODO.md libq/atom.c X-VCS-Directories: / libq/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: d26a4c6fab322e4310fad304258300e548384115 X-VCS-Branch: master Date: Tue, 7 May 2019 06:19:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: eaed910f-1768-4692-9c36-39410deccff2 X-Archives-Hash: 3a21562e74104c8581b49d85959e1faa commit: d26a4c6fab322e4310fad304258300e548384115 Author: Fabian Groffen gentoo org> AuthorDate: Mon May 6 18:12:44 2019 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon May 6 18:12:44 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=d26a4c6f libq/atom: use less emphasis on PVR Signed-off-by: Fabian Groffen gentoo.org> TODO.md | 4 ++-- libq/atom.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/TODO.md b/TODO.md index 6fda56d..3333fd6 100644 --- a/TODO.md +++ b/TODO.md @@ -8,9 +8,9 @@ - disable color when tty = NULL; may break less? -- standardize/unify/clean up misc handling of colors +- standardize/unify/clean up misc handling of colors (atom\_format) define rules: - BOLD CATEGORY/ BLUE PKG BKBLUE -VER YELLOW :SLOT GREEN ::REPO NORM [ MAGENTA USE NORM ] + BOLD CATEGORY/ BLUE PKG CYAN -VER YELLOW :SLOT GREEN ::REPO NORM [ MAGENTA USE NORM ] - remove odd rmspace for each string in libq/set.c (allows a lot less malloc/frees) diff --git a/libq/atom.c b/libq/atom.c index 4df76a6..0eaee5c 100644 --- a/libq/atom.c +++ b/libq/atom.c @@ -676,23 +676,23 @@ atom_format_r( } else if (!strncmp("PV", fmt, len)) { if (showit || atom->PV) append_buf(buf, buflen, "%s%s%s", - DKBLUE, HN(atom->PV), NORM); + CYAN, HN(atom->PV), NORM); } else if (!strncmp("PVR", fmt, len)) { if (showit || atom->PVR) append_buf(buf, buflen, "%s%s%s", - DKBLUE, HN(atom->PVR), NORM); + CYAN, HN(atom->PVR), NORM); } else if (!strncmp("PF", fmt, len)) { append_buf(buf, buflen, "%s%s%s", BLUE, atom->PN, NORM); if (atom->PV) append_buf(buf, buflen, "%s-%s%s", - DKBLUE, atom->PV, NORM); + CYAN, atom->PV, NORM); if (atom->PR_int) append_buf(buf, buflen,"%s-r%d%s", - DKBLUE, atom->PR_int, NORM); + CYAN, atom->PR_int, NORM); } else if (!strncmp("PR", fmt, len)) { if (showit || atom->PR_int) append_buf(buf, buflen, "%sr%d%s", - DKBLUE, atom->PR_int, NORM); + CYAN, atom->PR_int, NORM); } else if (!strncmp("SLOT", fmt, len)) { if (showit || atom->SLOT) append_buf(buf, buflen, "%s%s%s%s%s%s%s",