PAGER program wanted

Stefan Farestam farestam at ORION.CERFACS.FR
Mon Feb 4 10:22:27 AEST 1991



Rick Becker <rab at research.att.com> writes:
>Many utilities allow the setting of a shell variable, PAGER,
>to specify a filter through which printed output should be piped.
>Often, people use PAGER=more or something like that in order to
>prevent output from scrolling by too fast.
>
>I wanted to find a simple way to produce a PAGER that would pop up
>a new window and run more in that window.  By simple, I mean a short-ish
>shell script that uses readily available commands like wsh.
>However, try as I might, I can't figure out how to build it.
>
>Am I just unaware of an appropriate command or is the task inherently 
>difficult?

   Since the command defined by PAGER (or MANPAGER) is feeded the data by
   standard input it does not work to do:

      setenv PAGER 'wsc -c more'

   However, it is possible to do:

      setenv PAGER 'cat > /tmp/.m; wsh -c more /tmp/.m'

   It is probably a good idea to add the option -H to the invocation of
   wsh. Personally I would use winterm instead of wsh, as the look and
   feel of winterm is defined by the environmental variable WINTERM.

   /Stefan Farestam


--

   .................................................................   
 .             Stefan Farestam <farestam at cerfacs.fr>                 .
.   __ __  __ _  _ _                                                  .
.  /  |_ )|_ /_\/ (          European Centre for Research and         .
 . \_ |__\| /   \__)    Advanced Training in Scientific Computation  .
   .................................................................  



More information about the Comp.sys.sgi mailing list