[BACK]Return to commands.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / top

Diff for /src/usr.bin/top/commands.c between version 1.20 and 1.21

version 1.20, 2007/01/05 07:26:46 version 1.21, 2007/01/05 09:46:12
Line 68 
Line 68 
 show_help(void)  show_help(void)
 {  {
         printf("Top version %s, %s\n", version_string(), copyright);          printf("Top version %s, %s\n", version_string(), copyright);
         fputs("\n\n"          puts("\n\n"
             "A top users display for Unix\n"              "A top users display for Unix\n"
             "\n"              "\n"
             "These single-character commands are available:\n"              "These single-character commands are available:\n"
             "\n"              "\n"
             "^L      - redraw screen\n"              "^L      - redraw screen\n"
             "h or ?  - help; show this text\n"              "h or ?  - help; show this text\n"
             "q       - quit\n", stdout);              "q       - quit");
   
         /* not all commands are available with overstrike terminals */          /* not all commands are available with overstrike terminals */
         if (overstrike) {          if (overstrike) {
                 fputs("\n"                  puts("\n"
                     "Other commands are also available, but this terminal is not\n"                      "Other commands are also available, but this terminal is not\n"
                     "sophisticated enough to handle those commands gracefully.\n\n",                      "sophisticated enough to handle those commands gracefully.\n");
                     stdout);  
         } else {          } else {
                 fputs(                  puts(
                       "C       - toggle the display of the command line arguments\n"
                     "d       - change number of displays to show\n"                      "d       - change number of displays to show\n"
                     "e       - list errors generated by last \"kill\" or \"renice\" command\n"                      "e       - list errors generated by last \"kill\" or \"renice\" command\n"
                     "g       - filter on command name (+ selects all commands)\n"                      "g       - filter on command name (+ selects all commands)\n"
                     "i       - toggle the displaying of idle processes\n"                      "i       - toggle the displaying of idle processes\n"
                     "I       - same as 'i'\n"                      "I       - same as 'i'\n"
                     "k       - kill processes; send a signal to a list of processes\n"                      "k       - kill processes; send a signal to a list of processes\n"
                     "n or #  - change number of processes to display\n", stdout);                      "n or #  - change number of processes to display\n"
                 fputs(  
                     "o       - specify sort order (size, res, cpu, time, pri)\n"                      "o       - specify sort order (size, res, cpu, time, pri)\n"
                     "p       - display one process (+ selects all processes)\n",                      "p       - display one process (+ selects all processes)\n"
                     stdout);  
                 fputs(  
                     "r       - renice a process\n"                      "r       - renice a process\n"
                     "s       - change number of seconds to delay between updates\n"                      "s       - change number of seconds to delay between updates\n"
                     "S       - toggle the display of system processes\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"                      "T       - toggle the display of threads\n"
                     "C       - toggle the display of the command line arguments\n"                      "u       - display processes for only one user (+ selects all users)\n"
                     "\n\n", stdout);                      "\n");
         }          }
 }  }
   

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21