Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!munnari!comp.vuw.ac.nz!duncan From: duncan@comp.vuw.ac.nz (Duncan McEwan) Newsgroups: comp.unix.wizards Subject: Re: Pager in the shell Message-ID: <13031@comp.vuw.ac.nz> Date: Wed, 21-Oct-87 17:22:38 EDT Article-I.D.: comp.13031 Posted: Wed Oct 21 17:22:38 1987 Date-Received: Sat, 24-Oct-87 20:40:44 EDT References: <9779@brl-adm.ARPA> <1935@ttrdc.UUCP> Reply-To: duncan@comp.vuw.ac.nz (Duncan McEwan) Organization: Comp Sci, Victoria Univ, Wellington, New Zealand Lines: 31 Summary: It has been done in the kernel In article <1935@ttrdc.UUCP> levy@ttrdc.UUCP (Daniel R. Levy) writes: >The only other remotely reasonable way you could get between a program's >output and your terminal to paginate it is to kludge the terminal driver >in the kernel so it would paginate in cooked mode but not in raw mode. >(Has anyone been crazy enough to try this?) 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. Typing 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). I don't know about `crazy' either. It seems the only logical place to put such a feature if it's what you want. Not that I ever used it - I prefered the fuller functionality of "more", and I don't think anyone would be crazy enough to try doing regular expression searches in the tty driver :-) Duncan Domain: duncan@comp.vuw.ac.nz Path: ...!uunet!vuwcomp!duncan