From 6219af9a0a8ae702214ed081e012939ba2198d94 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Thu, 21 Mar 2024 23:07:11 +0100 Subject: [PATCH] Color private-reachable nodes gray --- cli/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cli/main.c b/cli/main.c index e51991b..b1489eb 100644 --- a/cli/main.c +++ b/cli/main.c @@ -263,7 +263,11 @@ print_digraph_node(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data) if(pkg->flags & PKGCONF_PKG_PROPF_VIRTUAL) return; - printf("\"%s\" [fontname=Sans fontsize=8]\n", pkg->id); + if (pkg->flags & PKGCONF_PKG_PROPF_VISITED_PRIVATE) + printf("\"%s\" [fontname=Sans fontsize=8 fontcolor=gray color=gray]\n", pkg->id); + else + printf("\"%s\" [fontname=Sans fontsize=8]\n", pkg->id); + if (last_seen != NULL) { if (*last_seen != NULL)