Terminal paging in the kernel

Steve Zimmerman z at cca.UUCP
Thu Mar 22 00:12:59 AEST 1984


More answers to criticisms of page mode:

	First you have to find out what the terminal type is... this
	problem has not really been solved.

Although there may be no 100% foolproof way of doing this that works
automatically every time, the problem certainly has been solved in the
general case.  Whether people are using Berkeley Unix and ttytype or USG
Unix and some other mechanism, the fact is that regular users of
terminal dependent programs such as screen editors or "more" (and that
should include just about everybody) already have some mechanism for
getting their terminal type set correctly, either by the system or in
their .login or .profile file.  Once this is done, issuing the "stty
page" command I described previously, typically in the .login or
.profile file, works just fine.  Although we run Berkeley Unix, most
of our terminals hang off a port selector, so the ttytype file is of
little use to us.  Yet with a little intelligence in people's .login
files, the terminal type is set correctly for whatever programs want to
use it.  In practice, no problems have arisen.

	A pager such as more knows when output is directed to a terminal
	and when it isn't, and behaves appropriately. Have you built the
	same knowledge into the kernel?

Page mode is built into the terminal driver, and handles output from the
terminal.  When output is directed somewhere else, the page mode code is
never called.

	Steve Zimmerman



More information about the Comp.unix.wizards mailing list