Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!mcvax!ukc!its63b!simon From: simon@its63b.ed.ac.uk (Simon Brown) Newsgroups: comp.unix.wizards Subject: Re: Pager in the shell Message-ID: <698@its63b.ed.ac.uk> Date: Sun, 25-Oct-87 13:39:10 EST Article-I.D.: its63b.698 Posted: Sun Oct 25 13:39:10 1987 Date-Received: Wed, 28-Oct-87 02:15:59 EST References: <9779@brl-adm.ARPA> <1935@ttrdc.UUCP> <13031@comp.vuw.ac.nz> Reply-To: simon@its63b.ed.ac.uk (Simon Brown) Organization: Computer Science Department, Edinburgh University Lines: 39 In article <13031@comp.vuw.ac.nz> duncan@comp.vuw.ac.nz (Duncan McEwan) writes: > >Yep. The Z8000 V7 based unix (I think done by Interactive Systems, >based on a port initially done at Berkeley) that runs on our old Onyx >machine has exactly this feature. > > stty page > stty length 24 > >will cause the kernel to send a bell to your terminal, and suspend the process >after 24 lines have been output without an intervening read(). The feature >is disabled when using a program in raw or cbreak mode (I assume automatically >by the kernel, rather than every program that switches to raw or cbreak >having to turn it off). > The tty driver in the UK release of Version 7 had this feature as well, except that you didn't do a "stty page" - you used the ^P key to toggle paging on the fly - much more useful, because you can read a few pages with "paging", and then revert to no-paging when you get bored with the output, leaving it running while you go off for a drink. Needless to say, it doesn't suspend if it prints out 24 (or whatever) lines without doing a read() - it suspends until any character is typed (and throws it away then); this lets you quickly page through something by flicking the space-bar, but without leaving lots of stuff (ie, spaces) in the input stream. Another nice feature it had was "stty width " - the driver had automatic line-wrap built into it. -- -- ---------------------------------- | Simon Brown | UUCP: seismo!mcvax!ukc!{lfcs,its63b}!simon | Department of Computer Science | JANET: simon@uk.ac.ed.{lfcs,its63b} | University of Edinburgh, | ARPA: simon%lfcs.ed.ac.uk@cs.ucl.ac.uk | Scotland, UK. | or simon%its63b.ed.ac.uk@cs.ucl.ac.uk ---------------------------------- or simon%cstvax.ed.ac.uk@cs.ucl.ac.uk "Life's like that, you know"