Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2011 16:51:30 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r223937 - head/contrib/top
Message-ID:  <201107111651.p6BGpUKd001608@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Mon Jul 11 16:51:29 2011
New Revision: 223937
URL: http://svn.freebsd.org/changeset/base/223937

Log:
  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.
  
  PR:		bin/158775
  Submitted by:	arundel
  MFC after:	3 days

Modified:
  head/contrib/top/top.c

Modified: head/contrib/top/top.c
==============================================================================
--- head/contrib/top/top.c	Mon Jul 11 16:48:52 2011	(r223936)
+++ head/contrib/top/top.c	Mon Jul 11 16:51:29 2011	(r223937)
@@ -1020,7 +1020,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();
@@ -1029,7 +1029,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();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107111651.p6BGpUKd001608>