summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-07-11 16:51:29 +0000
committerjhb <jhb@FreeBSD.org>2011-07-11 16:51:29 +0000
commit85e4624c620e87f5a46375ac995df71811b5a2dd (patch)
treea664ca485ba61fa7719c5060697318c5df61cc9b
parent67900f72b1f7180ab693e92eae0c8c4381f5dabc (diff)
downloadFreeBSD-src-85e4624c620e87f5a46375ac995df71811b5a2dd.zip
FreeBSD-src-85e4624c620e87f5a46375ac995df71811b5a2dd.tar.gz
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
-rw-r--r--contrib/top/top.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/top/top.c b/contrib/top/top.c
index 8963385..4e4d86d 100644
--- a/contrib/top/top.c
+++ b/contrib/top/top.c
@@ -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();
OpenPOWER on IntegriCloud