From 1683db07dd8ba6464fa3ee7220948f2681bbef33 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 11 Jun 2018 17:14:29 -0700 Subject: top: running processes are shown in bold. --- toys/posix/ps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/toys/posix/ps.c b/toys/posix/ps.c index deab730b..75e8f54b 100644 --- a/toys/posix/ps.c +++ b/toys/posix/ps.c @@ -1550,8 +1550,13 @@ static void top_common( recalc = 1; for (i = 0; istate == 'R'; + if (!(toys.optflags&FLAG_b) && i) xputc('\n'); + if (bold) printf("\033[1m"); show_ps(mix.tb[i+topoff]); + if (bold) printf("\033[m"); } if (TT.top.n && !--TT.top.n) { -- cgit v1.2.3