-/* $NetBSD: help.c,v 1.5 2001/02/05 00:57:33 christos Exp $ */
+/* $NetBSD: help.c,v 1.9 2012/06/19 05:30:43 dholland Exp $ */
/* help.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: help.c,v 1.5 2001/02/05 00:57:33 christos Exp $");
+__RCSID("$NetBSD: help.c,v 1.9 2012/06/19 05:30:43 dholland Exp $");
#endif /* not lint */
#include <unistd.h>
#include "header.h"
#include "extern.h"
+
+static void retcont(void);
+static int openhelp(void);
+
/*
* help function to display the help info
*
* pages of help text (23 lines per page)
*/
void
-help()
+help(void)
{
int i, j;
#ifndef VT100
lprcat(" for more help ---- ");
i = 0;
while ((i != ' ') && (i != '\n') && (i != '\33'))
- i = lgetchar();
+ i = ttgetch();
if ((i == '\n') || (i == '\33')) {
lrclose();
setscroll();
* function to display the welcome message and background
*/
void
-welcome()
+welcome(void)
{
int i;
#ifndef VT100
/*
* function to say press return to continue and reset scroll when done
*/
-void
-retcont()
+static void
+retcont(void)
{
cursor(1, 24);
lprcat("Press ");
standout("return");
lprcat(" to continue: ");
- while (lgetchar() != '\n');
+ while (ttgetch() != '\n');
setscroll();
}
/*
* routine to open the help file and return the first character - '0'
*/
-int
-openhelp()
+static int
+openhelp(void)
{
if (lopen(helpfile) < 0) {
lprintf("Can't open help file \"%s\" ", helpfile);