File:  [CSRG BSD Unix] / 43BSDTahoe / sys / tahoestand / vdformat / help.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

#ifndef lint
static char sccsid[] = "@(#)help.c	1.1 (Berkeley/CCI) 7/5/86";
#endif

#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.