From a2e361dc278d5663eae68bdc1ca5b954c9076c92 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 20 Nov 2019 17:44:54 +0100 Subject: [PATCH] cgls: visually separate processes from cgroups Let's show them in grey, since we generally want to focus on showing the cgroups much less than the processes in them. --- src/shared/cgroup-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c index e07825e21e..208d27df1a 100644 --- a/src/shared/cgroup-show.c +++ b/src/shared/cgroup-show.c @@ -71,7 +71,7 @@ static void show_pid_array( else printf("%s%s", prefix, special_glyph(((more || i < n_pids-1) ? SPECIAL_GLYPH_TREE_BRANCH : SPECIAL_GLYPH_TREE_RIGHT))); - printf("%*"PID_PRI" %s\n", pid_width, pids[i], strna(t)); + printf("%s%*"PID_PRI" %s%s\n", ansi_grey(), pid_width, pids[i], strna(t), ansi_normal()); } }