#ifndef lint
-static char *sccsid = "@(#)more.c 4.15 (Berkeley) 83/07/07";
+static char *sccsid = "@(#)more.c 4.17 (Berkeley) 84/01/06";
#endif
/*
nfiles = argc;
fnames = argv;
initterm ();
+ nscroll = Lpp/2 - 1;
+ if (nscroll <= 0)
+ nscroll = 1;
if(s = getenv("MORE")) argscan(s);
while (--nfiles > 0) {
if ((ch = (*++fnames)[0]) == '-') {
onsusp ()
{
+ /* ignore SIGTTOU so we don't get stopped if csh grabs the tty */
+ signal(SIGTTOU, SIG_IGN);
reset_tty ();
fflush (stdout);
+ signal(SIGTTOU, SIG_DFL);
/* Send the TSTP signal to suspend our process group */
signal(SIGTSTP, SIG_DFL);
sigsetmask(0);