summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/top/commands.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/usr.bin/top/commands.c b/usr.bin/top/commands.c
index 66851ac88dc..18154ed0d83 100644
--- a/usr.bin/top/commands.c
+++ b/usr.bin/top/commands.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: commands.c,v 1.20 2007/01/05 07:26:46 otto Exp $ */
+/* $OpenBSD: commands.c,v 1.21 2007/01/05 09:46:12 otto Exp $ */
/*
* Top users/processes display for Unix
@@ -68,42 +68,38 @@ void
show_help(void)
{
printf("Top version %s, %s\n", version_string(), copyright);
- fputs("\n\n"
+ puts("\n\n"
"A top users display for Unix\n"
"\n"
"These single-character commands are available:\n"
"\n"
"^L - redraw screen\n"
"h or ? - help; show this text\n"
- "q - quit\n", stdout);
+ "q - quit");
/* not all commands are available with overstrike terminals */
if (overstrike) {
- fputs("\n"
+ puts("\n"
"Other commands are also available, but this terminal is not\n"
- "sophisticated enough to handle those commands gracefully.\n\n",
- stdout);
+ "sophisticated enough to handle those commands gracefully.\n");
} else {
- fputs(
+ puts(
+ "C - toggle the display of the command line arguments\n"
"d - change number of displays to show\n"
"e - list errors generated by last \"kill\" or \"renice\" command\n"
"g - filter on command name (+ selects all commands)\n"
"i - toggle the displaying of idle processes\n"
"I - same as 'i'\n"
"k - kill processes; send a signal to a list of processes\n"
- "n or # - change number of processes to display\n", stdout);
- fputs(
+ "n or # - change number of processes to display\n"
"o - specify sort order (size, res, cpu, time, pri)\n"
- "p - display one process (+ selects all processes)\n",
- stdout);
- fputs(
+ "p - display one process (+ selects all processes)\n"
"r - renice a process\n"
"s - change number of seconds to delay between updates\n"
"S - toggle the display of system processes\n"
- "u - display processes for only one user (+ selects all users)\n"
"T - toggle the display of threads\n"
- "C - toggle the display of the command line arguments\n"
- "\n\n", stdout);
+ "u - display processes for only one user (+ selects all users)\n"
+ "\n");
}
}