|
|
1.1 ! root 1: #ifndef lint ! 2: static char sccsid[] = "@(#)help.c 1.1 (Berkeley/CCI) 7/5/86"; ! 3: #endif ! 4: ! 5: #include "vdfmt.h" ! 6: #include "cmd.h" ! 7: ! 8: /* ! 9: ** These routines are used to display all the system help messages ! 10: ** that the operator requests. They look through the system command ! 11: ** tables to print the commands and the help messages in a neat mannor. ! 12: ** ! 13: ** The only break in this rule is the help processor for digit entry ! 14: ** Which informs the operator what numeric range is valid. ! 15: */ ! 16: ! 17: help_text(tbl) ! 18: cmd_text_element *tbl; ! 19: { ! 20: indent(); ! 21: print_common_help(); ! 22: indent(); ! 23: while(tbl->cmd_token != 0) { ! 24: register int count; ! 25: ! 26: count = 9 - strlen(tbl->cmd_text); ! 27: print("%s", tbl->cmd_text); ! 28: while(count--) ! 29: putchar(' '); ! 30: printf("- %s.\n", tbl->cmd_help); ! 31: tbl++; ! 32: } ! 33: exdent(2); ! 34: print("\n"); ! 35: } ! 36: ! 37: ! 38: /* ! 39: ** ! 40: */ ! 41: ! 42: print_common_help() ! 43: { ! 44: print("The following commands are available:\n"); ! 45: indent(); ! 46: print("%s - %s.\n", "KILL ", "Abort all operations"); ! 47: print("%s - %s.\n", "STATus ", "Display formatter state"); ! 48: exdent(1); ! 49: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.