Linux MS DOS discussions
 help / color / mirror / Atom feed
From: Jan Willem Stumpel <jstumpel@planet.nl>
To: "Alain M." <alainm@pobox.com>
Cc: dosEmu-list <linux-msdos@vger.kernel.org>
Subject: Re: Emulating a laser printer (was Epson Printing)
Date: Thu, 09 Nov 2006 09:10:19 +0100	[thread overview]
Message-ID: <4552E26B.9050008@my.home> (raw)
In-Reply-To: <45524615.4050005@pobox.com>

Alain M. schreef:

> 2) Configure Dosemu with this to generate PS (faster then PDF)
> and convert from stdin to stdout sending to printer: 
> $_printer_command = "pcl6 -dNOPAUSE -dBATCH -sDEVICE=pswrite 
> -sOutputFile=- - | lpr -P EpsonC87"

Yes.. this approach (using the Dosemu $_printer_command, and using
pcl6 directly) looks simpler than mine (I define a printer called
dos in /etc/printcap, with its own input filter involving pcl2pdf;
then I put $_printer = "dos" in ~/.dosemurc).

> I only tested with a simple DOS program, I will test with some
> CAD later.

Please let us know how it goes. In my case I can even call (from dos):

copy /b xxx.pcl prn:

where xxx.pcl is some kind of pcl encoded graphics file (some
examples, high-resolution Mandelbrot set pictures, are to be found
on my page http://www.jw-stumpel.nl/z-scope.html).

> As for Epson PS, maybe someday I will test it. I haven't tested
> it because it is a very old source code which will probably
> take some work to use with new compilers.

Compiling it is not such a big problem (but I have not tested it
yet). I just changed

#ifdef __TURBOC__
#define ANSI
#endif

to

#define ANSI

Then it compiled simply by "cc -o epsonps epsonps.c".

Regards, Jan


  reply	other threads:[~2006-11-09  8:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-08  0:32 Epson Printing Alain M.
2006-11-08  8:03 ` Jan Willem Stumpel
2006-11-08 21:03   ` Emulating a laser printer (was Epson Printing) Alain M.
2006-11-09  8:10     ` Jan Willem Stumpel [this message]
2006-11-10 10:18     ` Jan Willem Stumpel
2006-11-10 18:23       ` 1.3.3 flashy screen and overactive keyboard Jamie McPherson
2006-11-21 17:55       ` jamie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4552E26B.9050008@my.home \
    --to=jstumpel@planet.nl \
    --cc=alainm@pobox.com \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox