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();
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to