File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / sys / stand / vdfmt / help.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:29:50 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
Power 6/32 Unix version 1.21

#include	"vdfmt.h"
#include	"cmd.h"

/*
**	These routines are used to display all the system help messages
** that the operator requests.  They look through the system command 
** tables to print the commands and the help messages in a neat mannor.
**
**	The only break in this rule is the help processor for digit entry
** Which informs the operator what numeric range is valid.
*/

help_text(tbl)
cmd_text_element	*tbl;
{
	indent();
	print_common_help();
	indent();
	while(tbl->cmd_token != 0) {
		register int	count;

		count = 9 - strlen(tbl->cmd_text);
		print("%s", tbl->cmd_text);
		while(count--)
			putchar(' ');
		printf("- %s.\n", tbl->cmd_help);
		tbl++;
	}
	exdent(2);
	print("\n");
}


/*
**
*/

print_common_help()
{
	print("The following commands are available:\n");
	indent();
	print("%s - %s.\n", "KILL    ", "Abort all operations");
	print("%s - %s.\n", "STATus  ", "Display formatter state");
	exdent(1);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.