=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/commands.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/top/commands.c 2007/01/05 07:26:46 1.20 --- src/usr.bin/top/commands.c 2007/01/05 09:46:12 1.21 *************** *** 1,4 **** ! /* $OpenBSD: commands.c,v 1.20 2007/01/05 07:26:46 otto Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: commands.c,v 1.21 2007/01/05 09:46:12 otto Exp $ */ /* * Top users/processes display for Unix *************** *** 68,109 **** show_help(void) { printf("Top version %s, %s\n", version_string(), copyright); ! fputs("\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); /* not all commands are available with overstrike terminals */ if (overstrike) { ! fputs("\n" "Other commands are also available, but this terminal is not\n" ! "sophisticated enough to handle those commands gracefully.\n\n", ! stdout); } else { ! fputs( "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( "o - specify sort order (size, res, cpu, time, pri)\n" ! "p - display one process (+ selects all processes)\n", ! stdout); ! fputs( "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); } } --- 68,105 ---- show_help(void) { printf("Top version %s, %s\n", version_string(), copyright); ! 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"); /* not all commands are available with overstrike terminals */ if (overstrike) { ! puts("\n" "Other commands are also available, but this terminal is not\n" ! "sophisticated enough to handle those commands gracefully.\n"); } else { ! 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" "o - specify sort order (size, res, cpu, time, pri)\n" ! "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" "T - toggle the display of threads\n" ! "u - display processes for only one user (+ selects all users)\n" ! "\n"); } }