From 047fd921744f39a82a86d9370e03f7af511e6e84 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 25 Feb 2019 09:45:53 -0500 Subject: page: handle EPS without showpage --- src/cmd/page/ps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd/page/ps.c') diff --git a/src/cmd/page/ps.c b/src/cmd/page/ps.c index e75a1477..7935f694 100644 --- a/src/cmd/page/ps.c +++ b/src/cmd/page/ps.c @@ -353,7 +353,7 @@ Keepreading: } if(dumb) { - fprint(ps->gs.gsfd, "(%s) run\n", argv[0]); + fprint(ps->gs.gsfd, "(%s) run PAGEFLUSH\n", argv[0]); fprint(ps->gs.gsfd, "(/dev/fd/3) (w) file dup (THIS IS NOT A PLAN9 BITMAP 01234567890123456789012345678901234567890123456789\\n) writestring flushfile\n"); } @@ -420,6 +420,7 @@ psdrawpage(Document *d, int page) * so send one to avoid deadlock. */ write(ps->gs.gsfd, "\n", 1); + fprint(ps->gs.gsfd, "\nPAGEFLUSH\n"); im = convert(&ps->gs.g); if(im == nil) { fprint(2, "fatal: readimage error %r\n"); -- cgit v1.2.3