svn commit: r224038 - stable/7/contrib/top

John Baldwin jhb at FreeBSD.org
Thu Jul 14 19:25:43 UTC 2011


Author: jhb
Date: Thu Jul 14 19:25:42 2011
New Revision: 224038
URL: http://svn.freebsd.org/changeset/base/224038

Log:
  MFC 223870,223937:
  - Note that -a, -C, -H, -j, and -z are also toggles.
  - Add a leading space to the status messages output after toggling the
    'C' and 'H' flags at runtime.  This matches messages output for other
    toggles which leave the first column in the message blank to hold the
    cursor.

Modified:
  stable/7/contrib/top/top.X
  stable/7/contrib/top/top.c
Directory Properties:
  stable/7/contrib/top/   (props changed)

Modified: stable/7/contrib/top/top.X
==============================================================================
--- stable/7/contrib/top/top.X	Thu Jul 14 19:25:30 2011	(r224037)
+++ stable/7/contrib/top/top.X	Thu Jul 14 19:25:42 2011	(r224038)
@@ -197,11 +197,15 @@ a user to set his or her own defaults.  
 can also be specified in the environment variable
 .BR TOP .
 The options
+.BR \-a ,
+.BR \-C ,
+.BR \-H ,
 .BR \-I ,
+.BR \-j ,
 .BR \-S ,
-.BR \-u ,
+.BR \-t ,
 and
-.B \-t
+.B \-u
 are actually toggles.  A second specification of any of these options
 will negate the first.  Thus a user who has the environment variable
 .B TOP

Modified: stable/7/contrib/top/top.c
==============================================================================
--- stable/7/contrib/top/top.c	Thu Jul 14 19:25:30 2011	(r224037)
+++ stable/7/contrib/top/top.c	Thu Jul 14 19:25:42 2011	(r224038)
@@ -1013,7 +1013,7 @@ restart:
 			    case CMD_thrtog:
 				ps.thread = !ps.thread;
 				new_message(MT_standout | MT_delayed,
-				    "Displaying threads %s",
+				    " Displaying threads %s",
 				    ps.thread ? "separately" : "as a count");
 				header_text = format_header(uname_field);
 				reset_display();
@@ -1022,7 +1022,7 @@ restart:
 			    case CMD_wcputog:
 				ps.wcpu = !ps.wcpu;
 				new_message(MT_standout | MT_delayed,
-				    "Displaying %sCPU",
+				    " Displaying %sCPU",
 				    ps.wcpu ? "W" : "");
 				header_text = format_header(uname_field);
 				reset_display();


More information about the svn-src-all mailing list