🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4956

Re: Display Postscript paginating

#4956
From: Paul Asente
Date: Sat, 09 Mar 1991 06:16
35 lines
2208 bytes
In article <1991Mar07.143231.8470@ferret.ocunix.on.ca> clewis@ferret.ocunix.on.ca.UUCP (Chris Lewis) writes:
>How do you get Display Postscript to pause long enough so you can
>look at what it's drawn?  I have DPS on a RS/6000, and I can run
>my psroff (cat troff -2- postscript) piped into a program called
>"dpsexec" (one of the DPS example programs - seems to be some sort
>of frontend for the VM and comes with source), and see the output.
>
>Unfortunately, it won't pause at the end of a page, and when it hits
>the end of the file it simply erases the window...  So I have to
>read real fast....

The showpage operator has several parts; it prints out the current page,
erases the page, and resets some internal state.  In DPS, since it images
immediately, the "prints out the current page" part is really a no-op.

(I suspect you knew this already.)

What you have to do if you want to use dpsexec to preview a file is to
redefine showpage before reading the file.  The basic idea is to define
showpage to be a procedure that opens stdin for reading, reads a line from
it, then executes the original showpage operator.  This will make the
execution pause at the end of each page until you hit return.

If you don't know how to write PostScript code to redefine showpage, just
ask, and I'll get all the details.  I don't have the manual here at home
with me so I'd almost certainly make some mistakes if I tried to write
real code for you.

	-paul asente
		asente@adobe.com	...decwrl!adobe!asente

    Ratz put a bucket of liquid in front of me.
   "I wanted a glass of docs, Ratz.  What the hell is this?" I barked.
   "Motif don't fit in a glass anymore," he barked back.
    I looked at the liquid.  It was totally opaque to me.
Technical Details
Message-ID: <12244@adobe.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!adobe!asente
References: <1991Mar07.143231.8470@ferret.ocunix.on.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!adobe!asente
From: asente@adobe.com (Paul Asente)
Newsgroups: comp.lang.postscript
Subject: Re: Display Postscript paginating
Message-ID: <12244@adobe.UUCP>
Date: 9 Mar 91 06:16:13 GMT
References: <1991Mar07.143231.8470@ferret.ocunix.on.ca>
Sender: news@adobe.COM
Organization: Adobe Systems Inc.
Lines: 35