svn commit: r341346 - head/usr.bin/top

Mark Johnston markj at FreeBSD.org
Fri Nov 30 18:03:00 UTC 2018


Author: markj
Date: Fri Nov 30 18:02:59 2018
New Revision: 341346
URL: https://svnweb.freebsd.org/changeset/base/341346

Log:
  Add missing display messages when toggling modes.
  
  PR:		233667
  Submitted by:	James Wright <james.wright at jigsawdesign.com>
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D18331

Modified:
  head/usr.bin/top/top.c

Modified: head/usr.bin/top/top.c
==============================================================================
--- head/usr.bin/top/top.c	Fri Nov 30 16:02:27 2018	(r341345)
+++ head/usr.bin/top/top.c	Fri Nov 30 18:02:59 2018	(r341346)
@@ -985,6 +985,9 @@ restart:
 				break;
 			    case CMD_viewtog:
 				displaymode = displaymode == DISP_IO ? DISP_CPU : DISP_IO;
+				new_message(MT_standout | MT_delayed,
+				    " Displaying %s statistics.",
+				    displaymode == DISP_IO ? "IO" : "CPU");
 				header_text = format_header(uname_field);
 				display_header(true);
 				d_header = i_header;
@@ -992,9 +995,15 @@ restart:
 				break;
 			    case CMD_viewsys:
 				ps.system = !ps.system;
+				new_message(MT_standout | MT_delayed,
+				    " %sisplaying system processes.",
+				    ps.system ? "D" : "Not d");
 				break;
 			    case CMD_showargs:
 				fmt_flags ^= FMT_SHOWARGS;
+				new_message(MT_standout | MT_delayed,
+				    " %sisplaying process arguments.",
+				    fmt_flags & FMT_SHOWARGS ? "D" : "Not d");
 				break;
 			    case CMD_order:
 				new_message(MT_standout,


More information about the svn-src-head mailing list